Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!yale.edu!cmcl2!adm!news From: ketell@tolkien (Gregory Ketell) Newsgroups: comp.unix.wizards Subject: RE: pwd prompts in unix Message-ID: <27275@adm.brl.mil> Date: 22 Jun 91 14:48:59 GMT Sender: news@adm.brl.mil Lines: 25 How you set up your prompt depends on what shell you are running. Here are some methods I use. CSH: Create two aliases in your .cshrc file alias cd 'cd \!*;promp' alias promp 'set prompt = "`hostname`:`pwd` ! > "' This will result in a prompt such as tolkien:/usr/bin 23 > which tells you which machine you are currently on, your path, and what history command you are on. KSH: The Korn Shell has support for that built in. All you do is set your prompt command in your .profile to something like PS1 $HOST:$PWD ! > export PS1 and it will give you the same results as above. (Please excuse me if this is not perfect. I have not been on the Korn Shell for quite some time.) Good Luck, Gregory G. Ketell Director of Systems Engineering Rimma Technologies, Inc. gketell@seq.csuhayward.edu