dotfiles/bash/bash.d/fortune

11 lines
150 B
Plaintext

# Give a fortune cookie
if [[ $(command -v fortune) ]]
then
if [[ $(command -v cowsay) ]]
then
fortune -so | cowsay -n
else
fortune -so
fi
fi