Created
April 15, 2016 18:25
-
-
Save b3ll/7e885d1319c7dd8dd6a36f6106d6e39b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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