Skip to content

Instantly share code, notes, and snippets.

@christopherdolan
Created July 25, 2011 22:49
Show Gist options
  • Save christopherdolan/1105461 to your computer and use it in GitHub Desktop.
Save christopherdolan/1105461 to your computer and use it in GitHub Desktop.
MY bash prompt
[[ -s "$HOME/bin/dotfiles/ps1_functions" ]] && source "$HOME/bin/dotfiles/ps1_functions"
smiley()
{
if (( $? == 0 )) ; then
printf "%s" "\[\e[1;92m\]:)\[\e[m\]"
else
printf "%s" "\[\e[1;91m\]:(\[\e[m\]"
fi
}
ps1_set --prompt '$(smiley)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment