home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!bonnie.concordia.ca!ccu.umanitoba.ca!mona.muug.mb.ca!rhoro
- From: rhoro@muug.mb.ca (Rick Horocholyn)
- Newsgroups: comp.unix.shell
- Subject: Re: Need help putting PWD in PROMPT
- Message-ID: <1992Sep14.023706.6385@muug.mb.ca>
- Date: 14 Sep 92 02:37:06 GMT
- References: <1992Sep8.152514.24851@orlith.bates.edu> <1992Sep13.154528.3369@muug.mb.ca>
- Organization: Manitoba Unix User Group, Winnipeg, Manitoba, Canada
- Lines: 12
-
- In <1992Sep13.154528.3369@muug.mb.ca> rhoro@muug.mb.ca (Rick Horocholyn) writes:
-
- In <1992Sep8.152514.24851@orlith.bates.edu> pbeach@abacus.bates.edu (Preston Beach) writes:
- > I want to get my prompt to give my current working directory all the time.
-
- If you use pushd/popd at all, you'll also want to set aliases for them too:
-
- alias cd 'cd \!*; set prompt = "\! $cwd> "
- alias pushd 'pushd \!*; set prompt = "\! `pwd`> "'
- alias pop 'popd; set prompt = "\! `pwd`> "'
-
- Rick.
-