views:

25

answers:

0

This is my current PS1 prompt definition from by .bashrc:

PS1='\[\033[01;33m\]★ \[\033[01;30m\]\w \[\033[32m\]\$ \[\033[m\]'

My command prompt works great and I love it, but I would like to add one more little thing. I would really like to be able to have the text I enter (commands at the prompt) bold.

I know I could change the last escape code to be:

\[\033[01m\]

Which would make the command prompt text I enter bold, but it also does funny (undesirable) things with the output of entered commands.

Is there a way to do this? If so, how?

I am running gnome-terminal in Ubuntu.