Skip to content

Instantly share code, notes, and snippets.

@roboshoes
Last active March 10, 2017 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roboshoes/6816584 to your computer and use it in GitHub Desktop.
Save roboshoes/6816584 to your computer and use it in GitHub Desktop.
Personal terminal style
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
PS1='\nubi ${debian_chroot:+($debian_chroot)}\[\033[00;33m\]\u \[\033[00;32m\]\w\[\033[00;36m\]$(parse_git_branch)\[\033[00m\]:\n➜ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment