Skip to content

Instantly share code, notes, and snippets.

@chevinbrown
Created January 27, 2016 16:36
Show Gist options
  • Save chevinbrown/92027aa656976be98f42 to your computer and use it in GitHub Desktop.
Save chevinbrown/92027aa656976be98f42 to your computer and use it in GitHub Desktop.
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\$"
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment