Last active
January 2, 2016 04:29
-
-
Save madevelopers/8250773 to your computer and use it in GitHub Desktop.
My preferred bash prompt colors with gitprompt.
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
# This is my bash prompt is a copy on my eOS machine. | |
# load git prompt | |
# download it here: https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh | |
source ~/.git-prompt.sh | |
if [ "$color_prompt" = yes ]; then | |
PS1='\n${debian_chroot:+($debian_chroot)}\u@\h:\e[36m\w\e[95m$(__git_ps1)\e[39m\n\$ ' | |
else | |
PS1='\n${debian_chroot:+($debian_chroot)}\u@\h:\w$(__git_ps1)\n\$ ' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment