Skip to content

Instantly share code, notes, and snippets.

@madevelopers
Last active January 2, 2016 04:29
Show Gist options
  • Save madevelopers/8250773 to your computer and use it in GitHub Desktop.
Save madevelopers/8250773 to your computer and use it in GitHub Desktop.
My preferred bash prompt colors with gitprompt.
# 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