Skip to content

Instantly share code, notes, and snippets.

@gilesbowkett
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gilesbowkett/33d371a22ce88faf1c93 to your computer and use it in GitHub Desktop.
Save gilesbowkett/33d371a22ce88faf1c93 to your computer and use it in GitHub Desktop.
unicode nonsense in your shell
function unicode_nonsense {
if [ $? -eq 0 ]
then echo "\[\033[0;32m\]ᕕ(ᐛ)ᕗ"
else echo "\[\033[0;31m\]¯\_(ツ)_/¯"
fi
}
function muppet_prompt {
export PS1="$(unicode_nonsense)\[\033[0m\] "
}
export PROMPT_COMMAND=muppet_prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment