Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!spool.mu.edu!sdd.hp.com!caen!uwm.edu!linac!att!cbnewse!cbnewsd!beckley From: beckley@cbnewsd.att.com (Owen D. Beckley) Newsgroups: comp.unix.shell Subject: Re: ksh prompt Message-ID: <1991Feb28.155248.8035@cbnewsd.att.com> Date: 28 Feb 91 15:52:48 GMT References: <7079@mentor.cc.purdue.edu> Organization: AT&T Bell Laboratories - Naperville, IL Lines: 16 From article <7079@mentor.cc.purdue.edu>, by asg@sage.cc.purdue.edu (The Grand Master): > In article <1772@brchh104.bnr.ca> herrage@brchh107.BNR.CA writes: >>I have the following defined in my .profile: >> >> alias prompt="PS1=\"--> \`pwd\` <-- >> hostname> \"" > Try instead > PS1="--> \$PWD <-- If you like a one line prompt, try this: PS1='${PWD#${PWD%/*/*/*}/}> ' I puts only the lowest three parts of PWD in the prompt. owen_d_beckley@att.com