Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!sysjj.mdcbbs.com!hooverm From: hooverm@sysjj.mdcbbs.com (SQUID 6 on the DARK side) Newsgroups: comp.unix.questions Subject: How to redefine PROMPT to show current working directory Message-ID: <1990Nov1.131328.1@sysjj.mdcbbs.com> Date: 1 Nov 90 13:13:28 GMT Organization: McDonnell Douglas M&E, Cypress CA Lines: 17 Nntp-Posting-Host: ssdvx1 Nntp-Posting-User: bailey I've set up an alias as shown below: alias cd "cd \!*; set prompt = $LOGNAME-`hostname`'${cwd}%' " When I do a cd , I expect to see my current working directory. This works fine until I drop down into a subdir. What I expect to see is my FULL path name all the way down to the subdir like this: hooverm-ntscam1/home/ntscam/hoover/work% Instead I get this, no matter where I am: hooverm-ntscam1/home/ntscam/hoover% I'm sure its simple, but I can't see the woods for the trees. Mark