Skip to content

Instantly share code, notes, and snippets.

@tkalfigo
Last active February 1, 2017 14:26
Show Gist options
  • Save tkalfigo/8830556 to your computer and use it in GitHub Desktop.
Save tkalfigo/8830556 to your computer and use it in GitHub Desktop.
Set bash shell prompt to display git branch when in versioned folder
export PS1="\[\e]0;\u@\h:\w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$(__git_ps1)\$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment