Skip to content

Instantly share code, notes, and snippets.

@StephaneTrebel
Created September 19, 2017 08:21
Show Gist options
  • Save StephaneTrebel/ca91d70f2064beeaf14e343b328920d5 to your computer and use it in GitHub Desktop.
Save StephaneTrebel/ca91d70f2064beeaf14e343b328920d5 to your computer and use it in GitHub Desktop.
Git branch in prompt
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w\[\033[31m\]$(__git_ps1)\[\033[00m\]\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment