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

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!destroyer!ncar!mimbres.cs.unm.edu!cs.sandia.gov!jhgreen
  3. From: jhgreen@cs.sandia.gov (Jethro H. Greene)
  4. Subject: Re: History in ksh?
  5. Message-ID: <1993Jan19.051500.27503@cs.sandia.gov>
  6. Sender: usenet@cs.sandia.gov (Another name for news)
  7. Organization: Sandia National Laboratories, Albuquerque, NM
  8. References: <1299@alsys1.aecom.yu.edu>
  9. Date: Tue, 19 Jan 93 05:15:00 GMT
  10. Lines: 29
  11.  
  12. In article <1299@alsys1.aecom.yu.edu> manaster@yu1.yu.edu (Chaim Manaster) writes:
  13. >
  14. >The UNIX book I have only describes using history in the csh, but
  15. >does't say a word about how to use (or set up) history in the ksh.
  16. >Could anybody give me the basics that I can use until I get a hold
  17. >of a book that does describe history in the ksh.
  18. >
  19. >Primarily, I need info on how to set it up (what to put in .kshrc
  20. >or any other needed file to set up history) and how to pull up some
  21. >previous command, modify it and reissue it.
  22.  
  23. Type
  24.  
  25.     set -o emacs
  26.   or
  27.     set -o vi
  28.  
  29. (regardless of your feelings about vi and emacs, emacs usually takes less
  30. keystrokes when working with a history.)
  31.  
  32. Then, simply type emacs commands (^P, ^N, ^A, ^E, ^R, and ^K primarily).
  33.  
  34. I hope that this helps.
  35.  
  36. -- 
  37. Jethro H. Greene
  38. Massively Parallel Computing Research Laboratory,
  39. Sandia National Laboratories, Albuquerque, New Mexico
  40.  
  41.