Skip to content

Instantly share code, notes, and snippets.

@meesterdude
Created February 19, 2013 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meesterdude/4982567 to your computer and use it in GitHub Desktop.
Save meesterdude/4982567 to your computer and use it in GitHub Desktop.
bash_profile
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