home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / aix / 9105 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  1.2 KB

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