943,884 Members | Top Members by Rank

Ad:
May 20th, 2009
0

unix PS1

Expand Post »
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.?
Similar Threads
axn
Reputation Points: 10
Solved Threads: 0
Light Poster
axn is offline Offline
39 posts
since Sep 2007
May 24th, 2009
0

Re: unix PS1

Click to Expand / Collapse  Quote originally posted by axn ...
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.
Last edited by cfajohnson; May 24th, 2009 at 5:49 am.
Reputation Points: 25
Solved Threads: 23
Junior Poster
cfajohnson is offline Offline
193 posts
since Dec 2008
May 26th, 2009
0

Re: unix PS1

Ok much thanks, i got the idea for K-shell
axn
Reputation Points: 10
Solved Threads: 0
Light Poster
axn is offline Offline
39 posts
since Sep 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Applications and Software Forum Timeline: Complete Debian Linux Server Setup Tutorial
Next Thread in Linux Applications and Software Forum Timeline: samba user locked up





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC