Fancified signoff
This commit is contained in:
parent
13b501adaf
commit
c1e34513d3
1 changed files with 8 additions and 7 deletions
|
@ -3,12 +3,13 @@
|
||||||
#
|
#
|
||||||
# Authors:
|
# Authors:
|
||||||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||||
#
|
# John McDonnell <john.v.mcdonnell@gmail.com>
|
||||||
|
|
||||||
# Print the message.
|
if [ -f ~/.signoffs ];
|
||||||
cat <<-EOF
|
then
|
||||||
|
SIGNOFF=`shuf -n 1 ~/.signoffs`
|
||||||
Thank you. Come again!
|
else
|
||||||
-- Dr. Apu Nahasapeemapetilon
|
SIGNOFF='Till next time!'
|
||||||
EOF
|
fi
|
||||||
|
cowsay -$(shuf -n 1 -e b d g p s t w y) -f $(shuf -n 1 -e $(cowsay -l | tail -n +2)) $SIGNOFF || echo $SIGNOFF
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue