From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,55bdda513361063c X-Google-Attributes: gidfee84,public From: reece@dasher.wustl.edu (Reece Hart) Subject: Re: System Prompt - Put Path in prompt Date: 1995/06/18 Message-ID: <3s2e6a$er3@cerberus-138.wustl.edu>#1/1 X-Deja-AN: 104597938 references: <3rsqc3$h3p@nn.fast.net> organization: Washington University School of Medicine newsgroups: comp.unix.osf.osf1 Robert Cerniglia writes: >I'm trying to find somebody who can tell me where to find or how to >write a script that will display my Current working directory as my system >prompt. It depends on which shell you use. Certain shells allow format characters in the prompt string which expand to the current path. I know bash does and I believe tcsh does also; others may as well, but I don't use them. The man page for your shell should describe special prompt codes. I don't know if csh allows prompt codes. If note and you're using csh, you can do something like alias cd 'cd \!*; set prompt=$cwd%' I'm not a csh user and there may be easier ways. Again, see the man page. -- Reece Kimball Hart | email: reece@dasher.wustl.edu Biophysics & Biochemistry, Box 8231 | WWW: http://dasher.wustl.edu/~reece/ Washington Univ. School of Medicine | Phone: (314) 362-4198 (lab) 660 South Euclid | -7183 (fax) St. Louis, Missouri 63110 (USA) | PGP public key available by finger & WWW