I can't seem to get my intended prompt whenever my shell is sh(1):
gives
and behaves like this:
I am truly baffled. Even csh is more predictable on something similar. Especially considering it's more probable for the terminal to screw up the codes...
Code:
PS1="^[[1;31m`pwd` #^[[0m "
Code:
[1;31m/root #[0m
Code:
[1;31m/root #[0m cd /usr
[1;31m/root #[0m pwd
/usr
[1;31m/root #[0m _
I am truly baffled. Even csh is more predictable on something similar. Especially considering it's more probable for the terminal to screw up the codes...