function clippy { if [[ $? != 0 ]] then cowsay -f clippy "Would you like any help with that?" fi; } export PROMPT_COMMAND='clippy'