|
|
@ -14,10 +14,13 @@
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
} &!
|
|
|
|
} &!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Execute code only if STDERR is bound to a TTY.
|
|
|
|
|
|
|
|
[[ -o INTERACTIVE && -t 2 ]] && {
|
|
|
|
|
|
|
|
|
|
|
|
# Print a random, hopefully interesting, adage.
|
|
|
|
# Print a random, hopefully interesting, adage.
|
|
|
|
if (( $+commands[fortune] )); then
|
|
|
|
if (( $+commands[fortune] )); then
|
|
|
|
if [[ -t 0 || -t 1 ]]; then
|
|
|
|
|
|
|
|
fortune -s
|
|
|
|
fortune -s
|
|
|
|
print
|
|
|
|
print
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
} >&2
|
|
|
|