blob: 89e24630d0a3358d325e12778757cc185a17e992 (
plain) (
tree)
|
|
# If interactive shell and fortune(6) installed, print a short fortune
if [[ $- == *i* ]] && hash fortune 2>/dev/null ; then (
if [[ -d "$HOME"/.local/share/games/fortunes ]] ; then
FORTUNE_PATH=${FORTUNE_PATH:-$HOME/.local/share/games/fortunes}
fi
printf '\n'
fortune -sn "${FORTUNE_MAXSIZE:-768}" "$FORTUNE_PATH"
printf '\n'
) ; fi
|