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