On Fri, 11 Jun 1999, David Krings wrote:

> 
> Hi !
> 
>       Thank you very much for your mail. If i type PS1='\h:\w\$' in
directly and
> press enter, it works fine. If I put that into my etc/profile file
> commenting the old PS1 line, it works as long as i do not logout. After
the
> next login it is like before again.
> 
>       Ray Olszewski wrote me to add these lines:
> 
> PS1='\h:\w$'
> export PS1
> 
>       This doesn't work at all, neither entering it directly nor
putting it in
> the file. Basically it is the same as you told me and i guess he just
> forgot the \ in front of the $ (i tried both versions, none works).

That's strange.  It works for me, except the last character is always a
$.  I didn't tell you to export it because the export is already in the
initialization file.
>       
>       Any idea why ? Any idea for another way ?
> 
<From a casual look at my Cheap Bytes RedHat 5.0 rpmlist it looks like
RedHat changes both the filename and the manpage, and man bash _should_
tell you (near the end, in FILES) that it uses /etc/bashrc for
system-wide initialization.  Try changing PS1 there before you panic. :-)

I make an rpmlist by cd'ing to the RPMS dir on a RH cd and doing
rpm -qilp * >~/rpmlist

That give me a file with the package descriptions and file list that's
very useful for finding my way around RedHat.

>       I'm running RedHat 5.2 and have only root as user.
> 
Make a non-root user and get in the habit of using it when you don't
need to administer the system.  Please.  :-).  It is fairly easy for
root to do a lot of damage with a small typo.

>               Thanx and Greez > 
>                       Dave
Lawson
          >< Microsoft free environment

This mail client runs on Wine.  Your mileage may vary.






___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: http://dl.www.juno.com/dynoget/tagj.

Reply via email to