command prompt trouble

Tom Black tcblack at wireless111.net
Sat Apr 24 19:59:00 PDT 2004


Tom Black wrote:
> The command prompt code in  my /etc/profile is:
> PS1="[\[\e[31;40m\]\u\[\e[34;40m\] @ \[\e[35;40m\]\w\[\e[0m\]]\$"
> 
> The output however goes on two lines as:
> [tcblack at Brandon
> /etc]$
> 
> So I type (on one line)
> $ export PS1="[\[\e[31;40m\]\u\[\e[34;40m\] @ [\e[35;40m\]\w\[\e[0m\]]\$"
> and now it works.
> [tcblack @ /etc]$
> Somewhere there is a record of the wrong codes but "where"?
> 
> 
> 
grep found it in /etc/bashrc
I thought this was for "non-interactive" prompts started in the X 
environment not the bash shell as it starts at boot time?

-- 
Thomas Black
Linux Tutored by LFS 5.0
http://wr189.wireless111.com

Linux From Scratch:.˜./V\//†\\/(   )\^`˜´^
     .˜.
     /V\
    //†\\
   /(   )\
    ^`˜´^



More information about the blfs-support mailing list