Re: Set the prompt.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No, Edward wanted `pwd` as the prompt.
\W provides only the open folder, not full path. (which \w is).


On Wed, 3 Nov 2004 11:04:19 -0800 (PST), Scott Taylor
<scott@xxxxxxxxxxxxxxx> wrote:
> 
> 
> 
> Edward Parrilla said:
> > Hi all,
> > I have created this line in my .bash_profile
> >
> > PS1="{${HOSTNAME}"':${PWD}}'
> > export PS1
> >
> > However when I initiate my term session it does not show the host name,
> > nor the PWD.
> > What could be wrong?
> 
> Probably.
> 
> Try:
> 
> man bash
> 
> I get:
> PS1="\h:\W "
> to get the output you desire.  Your way looks more like the old Korn Shell
> (ksh), almost.
> 
> I like: PS1="[\u@\h \W]\\$ " (RH default, something they did right. ;)
> 
> --
> Scott
> 
> 
> -
> : send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux