Thread: bash prompt
View Single Post
Re: bash prompt
Old
  (#2)
BAStumm
Member
 
BAStumm's Avatar
 
Status: Offline
Posts: 138
Join Date: Jan 2004
Location: Spokane, WA USA
Default Re: bash prompt - 11-11-2004

.bashrc file in your user directory or globally in /etc/bashrc

it would look about like this:

Code:
   [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "
that would give you:

[user@host cwd]#

cwd = current working directory ie if your in /var/www/html it would show just html







Last edited by BAStumm; 11-11-2004 at 01:23..
  
Reply With Quote