Created
March 30, 2011 03:59
-
-
Save inadarei/893838 to your computer and use it in GitHub Desktop.
bash_profile source
This file contains 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
source $HOME/git-completion.sh | |
source $HOME/git-prompt.sh | |
export GIT_PS1_SHOWDIRTYSTATE=true | |
txtylw='\033[1;33m' # Yellow | |
fgcolor="\033[0m" # unsets color to term's fg color | |
twolevelprompt='$([ "$PWD" != "${PWD%/*/*/*}" ] && echo "/...${PWD##${PWD%/*/*}}" || echo "$PWD")' | |
gitprompt='$(__git_ps1 "[%s]")' | |
export PS1="\[$txtylw\] $twolevelprompt\[$fgcolor\]$gitprompt"'\$ ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment