Last active
July 14, 2016 03:50
-
-
Save badsyntax/8520972 to your computer and use it in GitHub Desktop.
My new bash PS1 prompt (on osx)
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
alias ls='ls -G' | |
source /usr/share/git-core/git-prompt.sh | |
source /usr/share/git-core/git-completion.bash | |
GIT_PS1_SHOWDIRTYSTATE=true | |
GIT_PS1_SHOWCOLORHINTS=true | |
GIT_PS1_SHOWUNTRACKEDFILES=true | |
PS1="\n\[\e[01;34m\]┌─(\[\e[01;35m\]\u@${HOSTNAME%%.*}\[\e[01;34m\])"'$(__git_ps1 "──(\[\e[01;31m\]%s\[\e[01;34m\])")'"\[\e[01;34m\]\n\[\e[01;34m\]└─(\[\e[01;32m\]\w\[\e[01;34m\])──(\[\e[01;32m\]$ \[\e[01;37m\]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In home directory (not in git repo):
In directory with git repo (which contains changes):