Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!bria!mike From: mike@bria.UUCP (Michael Stefanik) Newsgroups: comp.unix.shell Subject: Re: Current directory in the ksh prompt? Message-ID: <233@bria.UUCP> Date: 28 Apr 91 09:39:31 GMT References: Reply-To: uunet!bria!mike Organization: MGI Group International, Los Angeles, CA Lines: 18 In an article, mju@mudos.ann-arbor.mi.us (Marc Unangst) writes: >I recently started using ksh, and one thing I miss dearly from csh is >the ability to put the current directory in your prompt. [...] My personal favorite is this one (it prints out the basename of the current directory): PS1='${PWD##*/}> ' If you want the whole thing, then just use some variation of: PS1='${PWD}> ' -- Michael Stefanik, MGI Inc, Los Angeles | Opinions stated are never realistic Title of the week: Systems Engineer | UUCP: ...!uunet!bria!mike ------------------------------------------------------------------------------- If MS-DOS didn't exist, who would UNIX programmers have to make fun of?