home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!gatech!udel!gvls1!jabber!candle!root
- From: root@candle.uucp (Bruce Momjian)
- Subject: Re: History in ksh?
- Organization: a consultant's basement
- Date: Thu, 21 Jan 1993 14:19:15 GMT
- Message-ID: <1993Jan21.141915.3359@candle.uucp>
- X-Newsreader: TIN [version 1.1 PL6]
- References: <1299@alsys1.aecom.yu.edu>
- Lines: 29
-
- Chaim Manaster (manaster@yu1.yu.edu) wrote:
- :
- : The UNIX book I have only describes using history in the csh, but
- : does't say a word about how to use (or set up) history in the ksh.
- : Could anybody give me the basics that I can use until I get a hold
- : of a book that does describe history in the ksh.
- :
- : Primarily, I need info on how to set it up (what to put in .kshrc
- : or any other needed file to set up history) and how to pull up some
- : previous command, modify it and reissue it.
- :
-
- Add this to your .kshrc file:
- set -o emacs
- alias __A=^P
- alias __B=^N
- alias __C=^F
- alias __D=^B
-
- Now the ^P is really a control-P in the file. The __? alias works as an
- alias for ESC-[-?. This is mentioned in some ksh manual pages, not in
- others. This assumes ANSI-compatable cursor keys.
-
- You also need to set ENV to point to your ksh startup file, too.
- --
- Bruce Momjian | 830 Blythe Avenue
- root%candle.uucp@bts.com | Drexel Hill, Pennsylvania 19026
- + If your life is a hard drive, | (215) 353-9879(w)
- + Christ can be your backup. | (215) 853-3000(h)
-