Last active
August 29, 2015 14:19
-
-
Save gilesbowkett/33d371a22ce88faf1c93 to your computer and use it in GitHub Desktop.
unicode nonsense in your shell
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 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