Skip to content

Instantly share code, notes, and snippets.

@terryh
Created April 10, 2011 06:29
Show Gist options
  • Select an option

  • Save terryh/912102 to your computer and use it in GitHub Desktop.

Select an option

Save terryh/912102 to your computer and use it in GitHub Desktop.
.bashrc
source /etc/bash_completion.d/git
GITPS1='$(__git_ps1 " (%s)")'
case "$TERM" in
xterm*|rxvt*)
#PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]"
PS1="$PS1${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]${GITPS1}\$"
;;
*)
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment