Created
February 19, 2013 02:21
-
-
Save meesterdude/4982567 to your computer and use it in GitHub Desktop.
bash_profile
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
PS1="[\u@\h] \w\$(git branch 2> /dev/null | grep -e '\* ' | sed 's/^..\(.*\)/(\1)/')\$(git stash list 2> /dev/null | grep -e 'stash' | wc -l | sed 's/^ *//' | sed -n 's/\([1-9]\)/\{stashed:\1\}/p')\$ " | |
=> [ruru64@ruru64s-iMac] ~/adev/creativebug(master){stashed:1}$ | |
or if no git.. | |
=> [ruru64@ruru64s-iMac] ~/adev$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment