View Single Post
  #1   (View Single Post)  
Old 21st September 2017
mefisto mefisto is offline
Shell Scout
 
Join Date: Sep 2017
Posts: 97
Default SOLVED: ksh color coding prompt problem

Greetings all,

in order to have a reminder when switching to root, I am trying to colour code the prompts. It is working for the user, but not for root. I have copied the working prompt from the ~/.profile to the /root.profile:
Code:
export PS1='\e[0;31m\u@\h\e[00m:# '
but it does not work when I su to root. I have checked $TERM and it shows xterm.

Interestingly, when I log out of Openbox session and log in as root, the FVWM terminal shows the root's prompt correctly.

Any advice would be appreciated.

Kindest regards,

M

Last edited by mefisto; 23rd September 2017 at 10:13 AM.
Reply With Quote