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