Created
October 12, 2013 17:10
-
-
Save Preetam/6952441 to your computer and use it in GitHub Desktop.
Inspired by TJ Holowaychuk's PS1
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
function git_branch { | |
git rev-parse --abbrev-ref HEAD 2> /dev/null | sed -e 's/\(.*\)/\ \(\1\)/' | |
} | |
PS1="\n ∂\[\e[00;30m\] \[\e[0m\]\[\e[00;34m\][\[\e[0m\]\[\e[00;30m\]\W\[\e[0m\]\[\e[00;34m\]]\[\e[0m\]\$(git_branch)\[\e[00;30m\]:\[\e[0m\] " | |
PS2=" | " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment