| | |
unix PS1
Thread Solved |
•
•
Join Date: Dec 2008
Posts: 113
Reputation:
Solved Threads: 15
•
•
•
•
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 4:49 am.
Chris F.A. Johnson
http://cfajohnson.com
http://cfajohnson.com
![]() |
Similar Threads
- Unix Security Administrator (Tech / IT Consultant Job Offers)
- executing unix commands from php (PHP)
- Overview of UNIX (Getting Started and Choosing a Distro)
- Linux/UNIX (*nix Software)
Other Threads in the *nix Software Forum
- Previous Thread: Complete Debian Linux Server Setup Tutorial
- Next Thread: samba user locked up
Views: 1122 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for *nix Software
2005 account apache bashscripting busybox cert debian dns emacs failed file forwarding free freebsd fsf gaming gnu government gpl grep lawsuits license linux ls mail make makefile mandriva microsoft nameserver news obama open port postfix ps3 recovery samba search security server sflc share sharing software solaris source stallman subdirectory ubuntu unix virtualization vmware xbox





