Path: utzoo!utgpu!water!watmath!clyde!rutgers!rochester!bbn!husc6!sri-unix!quintus!sun!pitstop!sundc!seismo!uunet!vsi!sullivan From: sullivan@vsi.UUCP (Michael T Sullivan) Newsgroups: comp.unix.wizards Subject: Re: current pwd in prompt Summary: Unix World article Message-ID: <2@vsi.UUCP> Date: 9 Feb 88 23:09:18 GMT References: <11657@brl-adm.ARPA> <17877@topaz.rutgers.edu> Organization: V-Systems -- Santa Ana, CA Lines: 16 In article <17877@topaz.rutgers.edu>, ron@topaz.rutgers.edu (Ron Natalie) writes: > This works with any real shell: > > PS1="." ... > On the Korn shell (but not most Bourne shell PS1 is evaluated each time > it is printed so you can: > > PS1="`pwd` " The current (February) issue of "Unix World" has a nice little script for this written by Aspen Technologies, Inc., the ksh people. It's on page 109 in the Wizard's Grabbag. Michael Sullivan {ucbvax | ihnp4 | sun}!amdcad!uport!vsi!sullivan {uunet | attmail}!vsi!sullivan