Skip to content

Instantly share code, notes, and snippets.

@b3ll
Created April 15, 2016 18:25
Show Gist options
  • Save b3ll/7e885d1319c7dd8dd6a36f6106d6e39b to your computer and use it in GitHub Desktop.
Save b3ll/7e885d1319c7dd8dd6a36f6106d6e39b to your computer and use it in GitHub Desktop.
function lols {
random_num=$RANDOM
let "random_num %= 20"
if [ $random_num -eq 0 ]; then
alias hg="say hg && /usr/local/bin/hg"
else
alias hg="/usr/local/bin/hg"
fi
}
export PROMPT_COMMAND=lols
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment