Created
October 2, 2014 17:51
-
-
Save STRd6/7b4e3d053319c644d855 to your computer and use it in GitHub Desktop.
.bash_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
YELLOW="\[\033[0;33m\]" | |
GRAY="\[\033[0;34m\]" | |
RESET="\033[0;00m" | |
if [ -z "$COMP_SYM" ]; then | |
COMP_SYM="♥" | |
fi | |
PS1="\n\! \[\`if [[ \$? = "0" ]]; then echo '\e[32m\h\e[0m'; else echo '\e[31m\h\e[0m' ; fi\`\]:\w$YELLOW"'`__git_ps1`'"$GRAY \@$RESET\n$COMP_SYM " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment