2012-05-22 18:49:45 +02:00
|
|
|
#
|
|
|
|
# Executes commands at logout.
|
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
#
|
|
|
|
|
2016-08-23 17:31:34 +02:00
|
|
|
# Execute code only if STDERR is bound to a TTY.
|
2024-07-07 11:08:07 +02:00
|
|
|
# [[ -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
|
2016-08-23 17:31:34 +02:00
|
|
|
|
2024-07-07 11:08:07 +02:00
|
|
|
clear
|