Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!jona From: jona@moss.ATT.COM Newsgroups: net.unix Subject: Re: Korn Shell Question Message-ID: <2240@clyde.ATT.COM> Date: Fri, 31-Oct-86 08:20:30 EST Article-I.D.: clyde.2240 Posted: Fri Oct 31 08:20:30 1986 Date-Received: Sat, 1-Nov-86 02:46:18 EST References: <22300001@ntvax> Sender: lp@clyde.ATT.COM Reply-To: jona@moss.UUCP (Jon Allingham) Organization: AT&T Bell Laboratories, Whippany NJ Lines: 14 In ksh this is really a simple thing to do and you can extend in to be even more useful by using this: PS1="\${PWD#\$HOME/}> " What this does is remove your home directory name from the beginning of the prompt if you are anywhere below your home directory. This is really useful because when you are in your own directory structure your prompt isn't quite as long - and since my home directory is 14 characters long (including /'s) it is nice. Example: my home directory is '/m/swdev/jona' so if I am in /m/swdev/jona/bin my prompt will be 'bin> ' instead of 'm/swdev/jona/bin> '.