Skip to content

Instantly share code, notes, and snippets.

@robatron
Last active August 29, 2015 14:04
Show Gist options
  • Save robatron/48e436f9cfa83bd2cb8e to your computer and use it in GitHub Desktop.
Save robatron/48e436f9cfa83bd2cb8e to your computer and use it in GitHub Desktop.
Make kirby dance in your command prompt
# 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