From: Helge Pettersen <tubamann@gmail.com>
To: linux-admin@vger.kernel.org
Subject: Re: Set the prompt.
Date: Wed, 3 Nov 2004 20:08:22 +0100 [thread overview]
Message-ID: <e29bf9c5041103110861d675d3@mail.gmail.com> (raw)
In-Reply-To: <3960.192.168.99.70.1099508659.squirrel@192.168.99.70>
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@dctchambers.com> 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
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2004-11-03 19:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-03 18:53 Set the prompt Edward Parrilla
[not found] ` <e29bf9c50411031057125227a@mail.gmail.com>
2004-11-03 19:00 ` Helge Pettersen
2004-11-03 19:04 ` Scott Taylor
2004-11-03 19:08 ` Helge Pettersen [this message]
2004-11-03 19:12 ` Scott Taylor
2004-11-03 22:19 ` Edward Parrilla
2004-11-04 4:31 ` Glynn Clements
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e29bf9c5041103110861d675d3@mail.gmail.com \
--to=tubamann@gmail.com \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.