Re: [newbie] Command line path display?

1999-03-16 Thread Steve Philp

Lawrence Sayre wrote:
> 
> Steve Philp wrote:
> >
> > Lawrence Sayre wrote:
> > >
> > > Steve Philp wrote:
> > > >
> > > > Lawrence Sayre wrote:
> > > > > Steve Philp wrote:
> > > > > > 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.
> > > > >
> > > > > 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.
> > > >
> > > > I suppose this is a stupid question, but are you, infact, using the Bash
> > > > shell?
> > > >
> > > > --
> > > > Steve Philp
> > > > [EMAIL PROTECTED]
> > >
> > > Yes! (Mine is pretty much a default setup)
> >
> > Ya know, I'm truly embarassed by this.  I _really_ should have done more
> > than just read the manpage for Bash before giving you help on this one.
> > Once in a while I _really_ need to try out the advice I'm tossing out!
> >
> > Okay, I finally tried the modification myself and guess what?!  I didn't
> > notice a change either.  So, I took a look at what was being set with
> > 'export'.  I'd modified /etc/profile to show a lowercase 'w'.  'export'
> > showed that it was still being set with an uppercase 'w'.
> >
> > So, something after /etc/profile is changing it back to it's original
> > setting.  And that file is /etc/bashrc!
> >
> > So, make the same modification to /etc/bashrc and see what happens!
> > I've already tried it here this time... :)
> >
> > Sorry for questioning your sanity, Lawrence.  Time for my brown paper
> > bag.
> >
> > --
> > Steve Philp
> > [EMAIL PROTECTED]
> 
> Steve;
> 
> This worked!  Thank you!!!
> 
> Now, if I could only get it to say 'root' instead of '~'.

I read through the manpage a couple times, but didn't see anything that
would likely help.  Maybe one of the GNU newsgroups might be able to
help?  (When you find out, let me know, it'll bug me for awhile I'm
sure) 

-- 
Steve Philp
[EMAIL PROTECTED]



Re: [newbie] Command line path display?

1999-03-15 Thread Lawrence Sayre

Steve Philp wrote:
> 
> Lawrence Sayre wrote:
> >
> > Steve Philp wrote:
> > >
> > > Lawrence Sayre wrote:
> > > > Steve Philp wrote:
> > > > > 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.
> > > >
> > > > 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.
> > >
> > > I suppose this is a stupid question, but are you, infact, using the Bash
> > > shell?
> > >
> > > --
> > > Steve Philp
> > > [EMAIL PROTECTED]
> >
> > Yes! (Mine is pretty much a default setup)
> 
> Ya know, I'm truly embarassed by this.  I _really_ should have done more
> than just read the manpage for Bash before giving you help on this one.
> Once in a while I _really_ need to try out the advice I'm tossing out!
> 
> Okay, I finally tried the modification myself and guess what?!  I didn't
> notice a change either.  So, I took a look at what was being set with
> 'export'.  I'd modified /etc/profile to show a lowercase 'w'.  'export'
> showed that it was still being set with an uppercase 'w'.
> 
> So, something after /etc/profile is changing it back to it's original
> setting.  And that file is /etc/bashrc!
> 
> So, make the same modification to /etc/bashrc and see what happens!
> I've already tried it here this time... :)
> 
> Sorry for questioning your sanity, Lawrence.  Time for my brown paper
> bag.
> 
> --
> Steve Philp
> [EMAIL PROTECTED]

Steve;

This worked!  Thank you!!!

Now, if I could only get it to say 'root' instead of '~'.

PS: No need for the brown paper bag..

Lawrence Sayre
 
-
"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]>
-



Re: [newbie] Command line path display?

1999-03-14 Thread Steve Philp

Lawrence Sayre wrote:
> 
> Steve Philp wrote:
> >
> > Lawrence Sayre wrote:
> > > Steve Philp wrote:
> > > > 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.
> > >
> > > 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.
> >
> > I suppose this is a stupid question, but are you, infact, using the Bash
> > shell?
> >
> > --
> > Steve Philp
> > [EMAIL PROTECTED]
> 
> Yes! (Mine is pretty much a default setup)

Ya know, I'm truly embarassed by this.  I _really_ should have done more
than just read the manpage for Bash before giving you help on this one. 
Once in a while I _really_ need to try out the advice I'm tossing out!

Okay, I finally tried the modification myself and guess what?!  I didn't
notice a change either.  So, I took a look at what was being set with
'export'.  I'd modified /etc/profile to show a lowercase 'w'.  'export'
showed that it was still being set with an uppercase 'w'.

So, something after /etc/profile is changing it back to it's original
setting.  And that file is /etc/bashrc!

So, make the same modification to /etc/bashrc and see what happens! 
I've already tried it here this time... :)

Sorry for questioning your sanity, Lawrence.  Time for my brown paper
bag.  

-- 
Steve Philp
[EMAIL PROTECTED]



Re: [newbie] Command line path display?

1999-03-14 Thread Lawrence Sayre

Steve Philp wrote:
> 
> Lawrence Sayre wrote:
> > Steve Philp wrote:
> > > 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.
> >
> > 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.
> 
> I suppose this is a stupid question, but are you, infact, using the Bash
> shell?
> 
> --
> Steve Philp
> [EMAIL PROTECTED]

Yes! (Mine is pretty much a default setup)

Lawrence Sayre
 
-
"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]>
-



Re: [newbie] Command line path display?

1999-03-13 Thread Steve Philp

Lawrence Sayre wrote:
> Steve Philp wrote:
> > 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.
> 
> 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.

I suppose this is a stupid question, but are you, infact, using the Bash
shell?

-- 
Steve Philp
[EMAIL PROTECTED]



Re: [newbie] Command line path display?

1999-03-13 Thread Lawrence Sayre

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 100
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



Re: [newbie] Command line path display?

1999-03-13 Thread Lawrence Sayre

Steve Philp wrote:
> 
> Lawrence Sayre wrote:
> >
> > My command line path only shows the directory I'm in, and not all of the
> > directories below it.
> >
> > How can I set this for complete path information?
> 
> To change it for all users:
> 
> Edit /etc/profile, changing this line:
> 
> PS1="[\u@\h \W]\\$ "
> 
> to this:
> 
> 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.  

Thanks for trying!

Lawrence Sayre
 
-
"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]>
-



Re: [newbie] Command line path display?

1999-03-12 Thread Steve Philp

Lawrence Sayre wrote:
> 
> My command line path only shows the directory I'm in, and not all of the
> directories below it.
> 
> How can I set this for complete path information?

To change it for all users:

Edit /etc/profile, changing this line:

PS1="[\u@\h \W]\\$ "

to this:

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]



[newbie] Command line path display?

1999-03-12 Thread Lawrence Sayre

My command line path only shows the directory I'm in, and not all of the
directories below it.

How can I set this for complete path information?

-
"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]>
-