home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / question / 15814 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.4 KB  |  41 lines

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