Skip to content

Instantly share code, notes, and snippets.

@marc0der
Created January 20, 2012 23:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marc0der/1650125 to your computer and use it in GitHub Desktop.
Save marc0der/1650125 to your computer and use it in GitHub Desktop.
colourful bash prompt with git branch
#using git-completion script
source ~/bin/git-completion.sh
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;33m\]\w\[\033[00m\]$(__git_ps1 " \[\033[00;31m\](%s)\[\033[00m\]")\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment