My prompt is:
PS1="\`if [ \$? = 0 ]; then echo \[\e[33m\]':)'\[\e[0m\]; else echo \[\e[31m\]':('\[\e[0m\]; fi\` \e[0;1m\w\e[1m\n\$ "
The problem is when I use ls, the prompt changes colors to the color of the last line outputted with ls. For example, if I have a file named z, the prompt changes to grey (to match the color of files from ls) after typing ls, and this behavior is driving me nuts.
Anyone know how I can fix that? I want the entire prompt set to white, with the smilies colored differently.
(My prompt spits out a :) or a :( based on the outcome fo the last command, shows the directory path of pwd, then drops to a new line for command input)
I've enabled force_color_prompt to no avail.