Skip to content

Instantly share code, notes, and snippets.

Last active Dec 11, 2015
What would you like to do?
Slightly modified version of Mark Otto's bash style ( to prevent the wrapping problem discussed here ( I just wrapped the whole in thing in \[ and \].
export PS1='\[\e[0:35m⌘\e[m \e[0:36m\w/\e[m \e[0:33m`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`\e[m\]'
Copy link

bylatt commented Feb 17, 2013

@bjgodinez Now I can fix this problem by adding some symbols to the end of the line. So I created my gist to show you here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment