Last active
August 29, 2015 14:04
-
-
Save robatron/48e436f9cfa83bd2cb8e to your computer and use it in GitHub Desktop.
Make kirby dance in your command prompt
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
# Add this to your .bashrc/.profile to make Kirby dance in your command prompt! E.g., | |
# | |
# rob@hal ~ $ (>'.')> | |
# rob@hal ~ $ ^('.')^ | |
# rob@hal ~ $ <('.'<) | |
# rob@hal ~ $ ^('.')^ | |
# rob@hal ~ $ (>'.')> | |
# | |
# Moved from it's original location at http://pastebin.com/ftR6mtPg | |
export ORIG_PS1=$PS1 | |
export KIRBY_IDX=0 | |
KIRBY_FRAMES=("<('.'<)" "^('.')^" "(>'.')>" "^('.')^") | |
export PROMPT_COMMAND='export PS1="$ORIG_PS1${KIRBY_FRAMES[KIRBY_IDX]} "; export KIRBY_IDX=$(expr $(expr $KIRBY_IDX + 1) % ${#KIRBY_FRAMES[@]})' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment