Created
January 14, 2013 09:20
-
-
Save esmil/4528827 to your computer and use it in GitHub Desktop.
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
export GIT_PS1_SHOWDIRTYSTATE=1 | |
export GIT_PS1_SHOWSTASHSTATE=1 | |
export GIT_PS1_SHOWUNTRACKEDFILES=1 | |
export GIT_PS1_SHOWUPSTREAM='verbose' | |
export GIT_PS1_SHOWCOLORHINTS=1 | |
source /usr/share/git/git-prompt.sh | |
function prompt_command() { | |
[ -n "$DISPLAY" ] && echo -ne "\033]0;${PWD/$HOME/~}/ [$USER@$HOSTNAME]\a" | |
__git_ps1 '' '\[\033[01;32m\]\u\[\033[00m\]@\[\033[00;32m\]\h\[\033[01;34m\]\w\[\033[00m\]\$ ' '%s\\n' | |
} | |
export PROMPT_COMMAND=prompt_command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment