From: reece@dasher.wustl.edu (Reece Hart)
Subject: Re: System Prompt - Put Path in prompt
Date: 1995/06/18 [thread overview]
Message-ID: <3s2e6a$er3@cerberus-138.wustl.edu> (raw)
In-Reply-To: 3rsqc3$h3p@nn.fast.net
Robert Cerniglia <peitechs@fast.net> 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
next prev parent reply other threads:[~1995-06-18 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-06-16 4:00 System Prompt - Put Path in prompt Robert Cerniglia
1995-06-18 4:00 ` Reece Hart [this message]
1995-06-19 4:00 ` Tim Lucia
1995-06-19 4:00 ` oberman
1995-06-20 4:00 ` g0daeniken
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox