Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!uswnvg!dfpedro From: dfpedro@uswnvg.UUCP (Donn Pedro) Newsgroups: comp.unix.shell Subject: Re: Current directory in the ksh prompt? Message-ID: <760@uswnvg.UUCP> Date: 30 Apr 91 14:20:49 GMT References: <1991Apr30.021429.2072@spool.cs.wisc.edu> Lines: 13 In article <1991Apr30.021429.2072@spool.cs.wisc.edu>, odin@jomby.cs.wisc.edu (Odin Anderson) writes: > Isn't the folowing more simple while still doing what you want: > PS1=" \$PWD> " > This works well for me (I like the whole path). If you only want the last component of the path: PS1='${PWD##*/} > ' Note that this is running under ksh. dfpedro@uswnvg.UUCP