prezto/runcoms/zlogout

16 lines
353 B
Text
Raw Normal View History

#
# Executes commands at logout.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
2012-12-01 23:51:33 -05:00
# John McDonnell <john.v.mcdonnell@gmail.com>
2012-12-01 23:51:33 -05:00
if [ -f ~/.signoffs ];
then
SIGNOFF=`shuf -n 1 ~/.signoffs`
else
SIGNOFF='Till next time!'
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