Re: Setting Prompt
I use the following prompt which gives the hostname first,
followed by the name of the current directory.
#prompt
PS1=`hostname`': ~\W '
export PS1
You should probably just try to cut and paste it, rather than
type it. You have to make sure you get the right apostrophies
etc...
John.
"M.C. Vernon" wrote:
>
> > This wasn't what I wanted I only want the current working directory to
> > show. I took a look at the man page for bash. It said that "\w" would
> > list my working directory. So I tried the following:
> >
> > If I use,
> > export PS1='\w:\\$ '
> >
> > I get,
> > ~:$
> ^
> This is your working directory - ~/ is short for your home directory. If
> you did cd /etc/init.d, then the prompt would say
>
> /etc/init.d:$
>
> Matthew
>
> --
> Elen sila lumenn' omentielvo
>
> Steward of the Cambridge Tolkien Society
> Selwyn College Computer Support
> http://www.geocities.com/Area51/Chamber/8841/
> http://www.cam.ac.uk/CambUniv/Societies/tolkien/
> http://pick.sel.cam.ac.uk/
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
--
John Stevenson, Objective Alliance: www.oa.nl
"Its grip'd, its sorted.."
Reply to: