Steve Philp wrote:
>
> Lawrence Sayre wrote:
> >
> > Steve Philp wrote:
> > >
> > > Lawrence Sayre wrote:
> > > > >
> > > > > PS1="[\u@\h \w]\\$"
> > > > >
> > > > > To change it just for yourself, add the line above to ~/.bash_profile.
> > > > >
> > > > > You can find information about what the \u, \h, \w and \$ mean in the
> > > > > Bash manpage. (man bash)
> > > > >
> > > > > --
> > > > > Steve Philp
> > > > > [EMAIL PROTECTED]
> > > >
> > > > Sorry Steve, but this didn't work.
> > >
> > > What happens when you try it?
> > >
> > > The one thing that I noticed was that instead of getting /home/sphilp in
> > > my home directory, I get ~, but for other directories I ended up with
> > > the complete path in the prompt.
> > >
> > > --
> > > Steve Philp
> > > [EMAIL PROTECTED]
> >
> > I get no change, regardless of the directory.
>
> You made the change to what file? /etc/profile? or ~/.bash_profile?
>
> In ~/.bash_profile, you'll probably need to put it at the end of the
> file, since the script also ends up reading system-wide configuration
> files (/etc/bashrc).
>
> Also, after making the change to whichever file, did you logout and log
> back in? You can try the PS1 stuff right from the command line for
> instant tests.
>
> --
> Steve Philp
> [EMAIL PROTECTED]
I made the change to /etc/profile. It did nothing (\w was the same as
\W). I tried re-booting, but still nothing. My /etc/profile file is
attached.
---------------------------------------------
"Man's mind is his basic tool of survival!"
(a quote from the famous 'John Galt' speech
in the equally famous book "Atlas Shrugged")
Lawrence Sayre <[EMAIL PROTECTED]>
---------------------------------------------
# /etc/profile
# System wide environment and startup programs
# Functions and aliases go in /etc/bashrc
PATH="$PATH:/usr/X11R6/bin"
PATH="$PATH:/root/rvplayer5.0"
PS1="[\u@\h \w]\\$ "
ulimit -c 1000000
if [ `id -gn` = `id -un` -a `id -u` -gt 14 ]; then
umask 002
else
umask 022
fi
USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
HISTFILESIZE=1000
export PATH PS1 HOSTNAME HISTSIZE HISTFILESIZE USER LOGNAME MAIL
for i in /etc/profile.d/*.sh ; do
if [ -x $i ]; then
. $i
fi
done
unset i