mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-11-20 08:31:13 +00:00
92e668e1d9
* 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
20 lines
453 B
Bash
20 lines
453 B
Bash
#
|
|
# Executes commands at logout.
|
|
#
|
|
# Authors:
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
#
|
|
|
|
# Execute code only if STDERR is bound to a TTY.
|
|
[[ -o INTERACTIVE && -t 2 ]] && {
|
|
|
|
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"
|
|
)
|
|
|
|
# Print a randomly-chosen message:
|
|
echo $SAYINGS[$(($RANDOM % ${#SAYINGS} + 1))]
|
|
|
|
} >&2
|