Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: lucia@savvy.zko.dec.com (Tim Lucia)
Subject: Re: System Prompt - Put Path in prompt
Date: 1995/06/19	[thread overview]
Message-ID: <3s4n5t$mhr@jac.zko.dec.com> (raw)
In-Reply-To: 3s2e6a$er3@cerberus-138.wustl.edu


I use ksh.  The following does what you want for ksh:

export PS1='${PWD#$HOME/}> '

where the #$HOME/ removes the /usr/users/lucia portion, giving me 
a directory relative to /usr/users/lucia as my prompt.


-- 
Timothy J. Lucia - DECladebug            Email:    mailto:lucia@zko.dec.com
Digital Equipment Corporation            Phone:           603.881.2615
110 Spitbrook Road ZKO2-3/K06            Fax:             603.881.0120
Nashua, NH  USA  03062-2698              I'd rather be fishing, thanks.



  reply	other threads:[~1995-06-19  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-06-16  4:00 System Prompt - Put Path in prompt Robert Cerniglia
1995-06-18  4:00 ` Reece Hart
1995-06-19  4:00   ` Tim Lucia [this message]
1995-06-19  4:00 ` oberman
1995-06-20  4:00   ` g0daeniken
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