Re: changing bash prompt escape sequences

2008-02-25 Thread Giancarlo Razzolini
Jay Hart escreveu: > I use bash as my shell. > > I'm trying to set the bash prompt to display: > > ttyC1 [EMAIL PROTECTED] > > I've created a .bashrc in the users home directory (in this case root), and > used the following line: > > PS1="\l [EMAIL PROTECTED] #" > > When I login as root, or any oth

Re: changing bash prompt escape sequences

2008-02-25 Thread Jan Stary
On Feb 23 21:29:57, Jay Hart wrote: > I use bash as my shell. > > I'm trying to set the bash prompt to display: > > ttyC1 [EMAIL PROTECTED] > > I've created a .bashrc in the users home directory (in this case root), and > used the following line: > > PS1="\l [EMAIL PROTECTED] #" > > When I log

Re: changing bash prompt escape sequences

2008-02-24 Thread Jordi Espasa Clofent
Only for fun: $ cat /etc/profile # sh/ksh initialization # add the same config is ssh access case PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin PS1="[EMAIL PROTECTED] [\w] [\t]\n\$ " HISTFILE=.ksh_history HISTSIZE=500 [EMAIL PROTECTED]:/cvs PKG_PATH=ftp://ftp.i

Re: changing bash prompt escape sequences

2008-02-24 Thread Tobias Ulmer
On Sun, Feb 24, 2008 at 04:53:35PM -0500, William Boshuck wrote: > I have seen the following sort of remarks a couple of > times this past week, yet I haven't seen them corrected. > Nick Holland is such an excellent writer that, as often > as not, you don't need to look at the sample code to > foll

Re: changing bash prompt escape sequences

2008-02-24 Thread Jay Hart
I will take your's and Nick's advice, and change root shell back to ksh. Thanks, Jay > I have seen the following sort of remarks a couple of > times this past week, yet I haven't seen them corrected. > Nick Holland is such an excellent writer that, as often > as not, you don't need to look at th

Re: changing bash prompt escape sequences

2008-02-24 Thread William Boshuck
I have seen the following sort of remarks a couple of times this past week, yet I haven't seen them corrected. Nick Holland is such an excellent writer that, as often as not, you don't need to look at the sample code to follow his advice. That's not relevant in this case, except insofar as I canno

Re: changing bash prompt escape sequences

2008-02-24 Thread Unix Fan
scott wrote: > version a... export PS1="\l [EMAIL PROTECTED] #" > > version b... export PS1="\l [EMAIL PROTECTED] \\$" > > "B" changes the "#" to be either "$" or "#" per user's non-root/root status. I was just using the line they provided... it's up to them to read the manual. -Ni

Re: changing bash prompt escape sequences

2008-02-24 Thread scott
version a... export PS1="\l [EMAIL PROTECTED] #" version b... export PS1="\l [EMAIL PROTECTED] \\$" "B" changes the "#" to be either "$" or "#" per user's non-root/root status. -Original Message- From: Unix Fan <[EMAI

Re: changing bash prompt escape sequences

2008-02-24 Thread bofh
On Sat, Feb 23, 2008 at 10:35 PM, Jay Hart <[EMAIL PROTECTED]> wrote: > I'll have to rescue the system if I can't login as root. > If I lose my /usr/local filesystem, I've probably lost the drive too. > I guess I have to ensure that I don't delete the bash package. In UNIX, it is always recomme

Re: changing bash prompt escape sequences

2008-02-24 Thread Unix Fan
$ cat .bash_profile ... export PS1="\l [EMAIL PROTECTED] #" $ Then log back in. this really is basic stuff.. ;) (Use ksh, it's much better then bash... ) -Nix Fan.

Re: changing bash prompt escape sequences

2008-02-23 Thread johan beisser
On Feb 23, 2008, at 7:35 PM, Jay Hart wrote: I've looked at or modified every file in roots and one users home directory without having the prompt displayed upon initial login. Once I login, and run 'bash', the prompt will be displayed as I set it. This leads me to believe that I have an i

Re: changing bash prompt escape sequences

2008-02-23 Thread Jay Hart
> On Feb 23, 2008, at 6:29 PM, Jay Hart wrote: > >> I use bash as my shell. >> >> I'm trying to set the bash prompt to display: >> >> ttyC1 [EMAIL PROTECTED] >> >> I've created a .bashrc in the users home directory (in this case >> root), and >> used the following line: >> >> PS1="\l [EMAIL PROTECT

Re: changing bash prompt escape sequences

2008-02-23 Thread johan beisser
On Feb 23, 2008, at 6:29 PM, Jay Hart wrote: I use bash as my shell. I'm trying to set the bash prompt to display: ttyC1 [EMAIL PROTECTED] I've created a .bashrc in the users home directory (in this case root), and used the following line: PS1="\l [EMAIL PROTECTED] #" So, what happens w