0

I have setup in .profile my login prompt as:
PS1='${HOSTNAME}/${PWD}>

how do I get the prompt to highlight so everytime i log in i see
whatever i set my PS1 to highlighted.?

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by axn
0

I have setup in .profile my login prompt as:
PS1='${HOSTNAME}/${PWD}>

how do I get the prompt to highlight so everytime i log in i see
whatever i set my PS1 to highlighted.?


What shell are you using?

In bash:

PS1='\[\e[[7m\]${HOSTNAME}/${PWD}\[\e[0m\]'

Adjust the 7 to whatever you want, e.g., 1;31 or 1;37;40m.

0

Ok much thanks, i got the idea for K-shell

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.