Skip to content

Instantly share code, notes, and snippets.

@phatduckk
Created September 4, 2010 02:23
Show Gist options
  • Save phatduckk/564831 to your computer and use it in GitHub Desktop.
Save phatduckk/564831 to your computer and use it in GitHub Desktop.
PS1
function parse_git_branch {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /'
}
YELLOW="\[\033[1;33m\]"
export PS1="\[\e[36;1m\]\u@\[\e[32;1m\]\H\e[0m:\[\e[0m\]\e[35;1m\w\e[0m $YELLOW\$(parse_git_branch)\[\e[0m\]$ \[\e[0m\]"
@phatduckk
Copy link
Author

ARIN PS1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment