From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,c51922ee46f94335 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-12-10 14:28:27 PST Newsgroups: comp.unix.osf.misc Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!mdisea!mothost!lmpsbbs!cbergren From: cbergren@comm.mot.com (Craig Bergren) Subject: Re: Problems with OSF on DEC Alpha Organization: Motorola Land Mobile Products Sector Date: Fri, 10 Dec 1993 00:03:10 GMT Message-ID: <1993Dec10.000310.10499@lmpsbbs.comm.mot.com> X-Newsreader: TIN [version 1.2 PL2] References: <1993Dec8.043553.1649@csis.dit.csiro.au> Sender: news@lmpsbbs.comm.mot.com (Net News) Nntp-Posting-Host: 145.1.117.40 Philip Kilby (pjk@csis.dit.csiro.au) wrote: > I am posting this for a friend. Will post summary. Thanks to respondants. 1) How to edit last command: for /bin/ksh $ export EDITOR=vi $ set -o vi Use vi to edit the command line. Press ^[ (escape) to enter into the editor mode where vi commands allow you to find and edit a command from your history file. If you prefer you can also specify emacs. Read the ksh man page for specifics. $ set -o viraw Keeps you from backing up over your prompt. Other useful envirionment variables: HISTFILE the name of your history file. HISTSIZE the number of lines to keep track of. $ export FCEDIT=vi The "fc" command allows you to edit using the editor of your choice (this case vi). Put all this stuff in .kshrc and export ENV=.kshrc and you will have all this set up for you every time you enter ksh. -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ! The views I hold are not mine, nor those of my employer. ! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++