• Download Gist
Fixing terminal to show navigation locations and git branch
1 2
export PS1='\w $(git branch &>/dev/null; if [ $? -eq 0 ]; then \
echo "\[\033[00m\]$(git branch | grep ^*|sed s/\*\ //) "; fi)\$\[\033[00m\] '

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.