From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,55bdda513361063c X-Google-Attributes: gidfee84,public From: lucia@savvy.zko.dec.com (Tim Lucia) Subject: Re: System Prompt - Put Path in prompt Date: 1995/06/19 Message-ID: <3s4n5t$mhr@jac.zko.dec.com>#1/1 X-Deja-AN: 104728537 distribution: world references: <3rsqc3$h3p@nn.fast.net> <3s2e6a$er3@cerberus-138.wustl.edu> organization: Digital Equipment Corporation reply-to: lucia@zko.dec.com newsgroups: comp.unix.osf.osf1 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.