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

  1. Path: sparky!uunet!mcsun!sun4nl!hp4nl!snrbru
  2. From: snrbru@nluug.nl (R. M. Bruijne)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: Where are you?
  5. Keywords: PATH, ksh, CWD, prompt
  6. Message-ID: <1133@epd74hp.nluug.nl>
  7. Date: 20 Aug 92 10:30:39 GMT
  8. References: <1992Aug19.122848.18225@aragorn.unibe.ch>
  9. Reply-To: rb@dasc.nl
  10. Organization: Data Science Nederland BV
  11. Lines: 25
  12.  
  13. Hello,
  14.  
  15. > Re: article about the current directory in the status line of
  16. >     an aixterm
  17. I think the alias for 'cd' is not the best way to go. When you exit an
  18. rlogin to another machine (where you use the same alias), the status line
  19. is not updated. The same goes for sub shells. Maybe a better idea is to
  20. use PS1 for this purpose. The definition I use is:
  21.      'PS1='^[[?E^[[?02T${PWD}^[[?F'"$PS1"; export PS1'
  22.  
  23. The three '^[' sequences stand for ESCAPE, which you must enter in vi
  24. using <ctrl>V <ESC>.
  25. The reference '$PS1' is to get the prompt (on the command line) you
  26. defined earlier.
  27.  
  28. A problem with this definition (AIX 3.2.0 w. many patches) is, that the
  29. path in the status line gets garbled when the path name gets too long.
  30. Anybody an idea why? I did try rather hard to get is fixed...
  31.  
  32. Hope it is of use to you.
  33.  
  34. Remco Bruijne
  35. ----------------
  36. Disclaimer: I only speak for myself.
  37.  
  38.