From: hiersekorn@addon.de (Edgar Hiersekorn)
Subject: Re: Need to display $PWD in prompt using /bin/ksh
Date: 1996/11/28 [thread overview]
Message-ID: <329d6922.12109112@ehuxs0> (raw)
In-Reply-To: E1Jx6w.9t1@blaze.trentu.ca
clos@ivory.trentu.ca wrote:
>We are using Korn shell (/bin/ksh) and I would like to have the shell display my
>present working directory ($PWD) in my command prompt evertime I "cd" to a
>different directory. I have tried the following aliases in my .profile but with
>out success:
>
> alias p='PS1=`hostname|cut -d. -f1`":$PWD#"'
> alias cd='cd \!* ; p'
>
>
>Any ideas on what I am doing wrong?
Don't use an alias, just define PS1 in .profile:
PS1="`hostname`:\$PWD#"
Watch the backslash befor $PWD!
--
/| Edgar Hiersekorn email: hiersekorn@addon.de
/ | Leiter Bereich UNIX Phone: +49 (7031) 717722
/ ( ) A d d O n Fax: +49 (7031) 717710
/___| Systemhaus GmbH Mobil: +49 (172) 7305922
http://www.addon.de/ <-------------------------
next prev parent reply other threads:[~1996-11-28 5:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-27 5:00 Need to display $PWD in prompt using /bin/ksh clos
1996-11-28 5:00 ` Mathew E Goldstein
1996-11-28 5:00 ` Roland Kruse
1996-11-28 5:00 ` Harald Finster
1996-11-28 5:00 ` Michael Livingston
1996-11-28 5:00 ` Raymond N Shwake
1996-11-29 5:00 ` John Meyers, Computing Services
1996-11-28 5:00 ` Edgar Hiersekorn [this message]
1996-12-02 5:00 ` Ian Mortimer
1996-12-07 5:00 ` system PRIVILEGED account
1996-12-09 5:00 ` Ian Mortimer
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox