Created
August 10, 2011 01:30
-
-
Save bltavares/1135811 to your computer and use it in GitHub Desktop.
Git Bash prompt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__ps1_plus(){ | |
PS1='[\[\e[1;31m\]\@\[\e[0m\]][\[\e[1;35m\]\u@\h ~> \[\e[1;36m\]\w\[\e[0m\]]\$ \[$(tput setaf 4)$(tput bold)\]$(__git_ps1 "(%s) ")\[$(tput sgr0)\]' | |
} | |
[ -z "$PS1" ] && return | |
GIT_PS1_SHOWDIRTYSTATE=true | |
#GIT_PS1_SHOWSTASHSTATE=true | |
GIT_PS1_SHOWUNTRACKEDFILES=true | |
GIT_PS1_SHOWUPSTREAM=true | |
export PROMPT_COMMAND=__ps1_plus |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment