home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sdd.hp.com!uakari.primate.wisc.edu!ames!data.nas.nasa.gov!taligent!apple!badenov.apple.com!user
- From: nevin@apple.com (Nevin ":-]" Liber)
- Newsgroups: comp.unix.aix
- Subject: Re: Where are you?
- Message-ID: <nevin-200892174722@badenov.apple.com>
- Date: 21 Aug 92 00:48:55 GMT
- References: <1992Aug19.122848.18225@aragorn.unibe.ch>
- Sender: usenet@Apple.COM
- Followup-To: comp.unix.aix
- Organization: Apple Computer, Inc.
- Lines: 19
-
- In article <1992Aug19.122848.18225@aragorn.unibe.ch>,
- haedener@iacrs1.unibe.ch (Konrad Haedener) wrote:
- > cwd () {
- > cd $*
- > echo $TSL$EL"You are on "$HOST" in "$BOLD$PWD$SGR0$FSL$KCUU1
- > }
- > alias cd=cwd
- > fi
- > You will get your hostname and current working directory displayed
- > and tracked in the aixterm's status line (and PS1 usually left alone).
-
- Unless you happen to create a subshell in the window, do a couple of cd's
- in it, and exit out of it, in which case all bets are off. It's really
- hard to get this one right.
- ___
- NEVIN ":-)" LIBER, RISC Porting Specialist/Blue Meanie, Mac System Software
- email: nevin@apple.com paper: Apple Computer, Inc.
- voice: (408) 974-MIX1 20525 Mariani Avenue, MS: 81-GC
- AppleLink: BADENOV Cupertino, CA 95014
-