From c1e34513d33fb24b456e8261bb56cebb5da9e8f7 Mon Sep 17 00:00:00 2001 From: John McDonnell Date: Sat, 1 Dec 2012 23:51:33 -0500 Subject: [PATCH] Fancified signoff --- runcoms/zlogout | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/runcoms/zlogout b/runcoms/zlogout index d898fec1..1c831a71 100644 --- a/runcoms/zlogout +++ b/runcoms/zlogout @@ -3,12 +3,13 @@ # # Authors: # Sorin Ionescu -# +# John McDonnell -# Print the message. -cat <<-EOF - -Thank you. Come again! - -- Dr. Apu Nahasapeemapetilon -EOF +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