home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!destroyer!ncar!mimbres.cs.unm.edu!cs.sandia.gov!jhgreen
- From: jhgreen@cs.sandia.gov (Jethro H. Greene)
- Subject: Re: History in ksh?
- Message-ID: <1993Jan19.051500.27503@cs.sandia.gov>
- Sender: usenet@cs.sandia.gov (Another name for news)
- Organization: Sandia National Laboratories, Albuquerque, NM
- References: <1299@alsys1.aecom.yu.edu>
- Date: Tue, 19 Jan 93 05:15:00 GMT
- Lines: 29
-
- In article <1299@alsys1.aecom.yu.edu> manaster@yu1.yu.edu (Chaim Manaster) writes:
- >
- >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.
-
- Type
-
- set -o emacs
- or
- set -o vi
-
- (regardless of your feelings about vi and emacs, emacs usually takes less
- keystrokes when working with a history.)
-
- Then, simply type emacs commands (^P, ^N, ^A, ^E, ^R, and ^K primarily).
-
- I hope that this helps.
-
- --
- Jethro H. Greene
- Massively Parallel Computing Research Laboratory,
- Sandia National Laboratories, Albuquerque, New Mexico
-
-