Last active
August 29, 2015 13:56
-
-
Save hohonuuli/9213971 to your computer and use it in GitHub Desktop.
A better 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
export PS1=$'\n\[\033[35m\]\u@\h:$PWD`git branch 2> /dev/null | grep -e ^* | sed s/"* "// | sed s/^/"\[\033[31\]m ⏣ \[\033[0;32m\]"/`\n\[\033[35m\] \[\033[m\]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If git's bash comletion is used, I can use this one instead:
PS1=$'\n\[\033[37m\]\u@\h:$PWD\[\033[0;32m\]$(__git_ps1)\n\[\033[37m\]>> \[\033[m\]'