From 46f28afe0464eef42b4fb49ad00cfb36822ebb10 Mon Sep 17 00:00:00 2001 From: Christopher Bowns Date: Tue, 22 May 2018 18:44:57 -0700 Subject: [PATCH] Remove zlogout's Apu quote (#1583) * Remove zlogout's Apu quote For questions about why, see https://en.wikipedia.org/wiki/The_Problem_with_Apu * Add a couple of random sayings per feedback in #1583 --- runcoms/zlogout | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/runcoms/zlogout b/runcoms/zlogout index 56b6b55..b5d9858 100644 --- a/runcoms/zlogout +++ b/runcoms/zlogout @@ -8,11 +8,12 @@ # Execute code only if STDERR is bound to a TTY. [[ -o INTERACTIVE && -t 2 ]] && { -# Print the message. -cat <<-EOF +SAYINGS=( + "So long and thanks for all the fish.\n -- Douglas Adams" + "Good morning! And in case I don't see ya, good afternoon, good evening and goodnight.\n --Truman Burbank" +) -Thank you. Come again! - -- Dr. Apu Nahasapeemapetilon -EOF +# Print a randomly-chosen message: +echo $SAYINGS[$(($RANDOM % ${#SAYINGS} + 1))] } >&2