diff --git a/.ashrc b/.ashrc index 4e5db3b..d543b21 100644 --- a/.ashrc +++ b/.ashrc @@ -238,6 +238,10 @@ PS1="\$(generate_prompt)" # Startup functions - these are executed on every shell start. # +# Display a line from the fortunes file. +cols=$(stty size | cut -d ' ' -f 2) +shuf -n 1 "$HOME/.fortunes" | fold -s -w $(($cols / 2)) + # Run scansoft on shell start scansoft diff --git a/.fortunes b/.fortunes new file mode 100644 index 0000000..e69de29