Skip to content

Instantly share code, notes, and snippets.

View chevinbrown's full-sized avatar
:shipit:

Kevin Brown chevinbrown

:shipit:
  • Remote
View GitHub Profile
@chevinbrown
chevinbrown / gitprompt.sh
Created January 27, 2016 16:36
Git prompt for cygwin
# EDIT for Git
__git_branch='`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`'
__git_branch_color="\[\033[36m\]"
__last_color="\[\033[00m\]"
export PS1="\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\] $__git_branch_color$__git_branch\n$__last_color\$"
~