Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I seem to have too many colour escapes so it only works in some prompts - can someone please correct for me ?

PS1='\[\e[0:35m[\u@\e[0:33m\h\e[m \e[0:35m\w]\e[m \e[0:33m`git branch 2> /dev/null | grep -e ^* | sed -E  s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`\e[m\] \n$ '
share|improve this question
2  
Please don't crosspost stackoverflow.com/questions/16245885/… –  jasonwryan Apr 26 '13 at 23:08
add comment

1 Answer

Replace all colons with semi-colons. Colons are not meaningful in escape sequences for colors.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.