From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,214386b2de4b7996 X-Google-Attributes: gidfee84,public From: Ed Wensell III aka THE StormRaiser Subject: Re: use of arrows to repeat command on 4.0D Date: 1999/05/11 Message-ID: <37382BB0.2607@pstcc.cc.tn.us.net>#1/1 X-Deja-AN: 476576849 Content-Transfer-Encoding: 7bit References: <3737EA9C.2CA387E@ufsia.ac.be> Content-Type: text/plain; charset=us-ascii Organization: Pellissippi State Technical Community College Mime-Version: 1.0 Reply-To: ewensell@pstcc.cc.tn.us.net Newsgroups: comp.unix.osf.osf1 Dominique Kindt wrote: > > Hello, > > I am currently trying to repeat the last command(s) with the arrows on a > Digital Unix v 4.0D. I know bash does it but I had some troubles with it > so I decided not to use it anymore. Can anybody help me? This depends on what shell you are using... For csh, set the following in your (or the system wide) .login: set editmode=emacs set history=20 The history can be adjusted to however many commands you want to keep track of. For Korn shell, set one of the following in your (or the system wide) .profile: set -o emacs - or - export EDITOR=emacs I'm not sure where to set the history list size on the latter. In both shells, these are dependent on whether or not you are using a capable terminal/emulator. Replace emacs with vi for vi style command editing. Bourne shell does not support it, as far as I know. Personally, this sounds like one of those little things that should be in the Tru64/DUNIX FAQ... It appears to be very buried in the regular documentation. -- Until soon... Ed Wensell III Systems and Operations Support, Pellissippi State E-mail hint: A college with a dot net domain?