I'd like to use the \w variable in .bashrc, but I want the prompt to highlight the current end-directory. Something like this:
/usr/local/<strong>bin</strong>
How can I do that?
|
feedback
|
use bash'isms to manipulate the $PWD for the last component. COlorize, and add yet even more meta for bash escapes. Substitute different numbers for 33 for different colors. personally i hate the path in the prompt, it moves across the screen. I prefer in the titlebar.
EDIT changed Quotes on PS1 to single quotes, since it needs to be evaluated every time it's printed, not just once when it's read. Thanks @Gordon | |||||
feedback
|
|
Use something like | |||
|
feedback
|