Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!umich!sharkey!rjf001!mudos!mju From: mju@mudos.ann-arbor.mi.us (Marc Unangst) Newsgroups: comp.unix.shell Subject: Current directory in the ksh prompt? Message-ID: Date: 28 Apr 91 00:27:03 GMT Organization: The Programmer's Pit Stop, +1 313 665 2832 Lines: 19 I realize this is probably a FAQ, but I can't seem to find the FAQ list on this machine or any of the NNTP servers around here (if you know of an NNTP server that accepts connections from anybody and keeps news a long time, like for over two weeks, please let me know!), so I'll ask away... I recently started using ksh, and one thing I miss dearly from csh is the ability to put the current directory in your prompt. With csh, it can be done by aliasing the cd command to something that does the cd and then re-sets your prompt, using `pwd` to get the new directory. Unfortunately, it seems that you can't use the parameters inside an alias like you can in csh, so this trick doesn't work. Is there a different trick for ksh, or am I just going to have to live with typing "pwd" all the time? -- Marc Unangst | mju@mudos.ann-arbor.mi.us | "Bus error: passengers dumped" ...!hela!mudos!mju |