From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,6948e41e03fbbf35 X-Google-Attributes: gid1164f8,public From: mbrodeur@homer.zko.dec.com (Michael Brodeur) Subject: Re: Retyping commands in DEC Unix Date: 1996/02/06 Message-ID: <4f7ll5$340@lead.zk3.dec.com>#1/1 X-Deja-AN: 138524561 references: <4f63l5$8m@lll-winken.llnl.gov> organization: Digital Equipment Corporation reply-to: mbrodeur@zko.dec.com newsgroups: comp.sys.dec In Article jdesbien@lino.com (Jean Desbiens) writes: >Hi all, > >I just got my new AlphaStation 400 running under DEC Unix (OSF-1) and I >keep on typing the same command over and over. Is there a utility that >provides an history of recent command that can invoke them by hitting the >UP arrow on the keyboard (as in OpenVMS)? This depends on the shell that you are using. UNIX supports several shells (i.e. the functional equivalent of DCL). You can usually tell what shell you are using by doing echo $SHELL -or- echo $shell If you are using /bin/csh, then you can enable command line editing by doing the following: set editmode=emacs -or- set editmode=vi (You'd probably want to use the emacs form since that enables arrow keys.) If you are using /bin/ksh the equivalent command would be: set -o emacs -or- set -o vi With the additional wrinkle that if you set the variable EDITOR to include the string emacs, gmacs or vi, then that editing style will be used instead. As above, the "emacs" version will get you use of your arrow keys. ----------------------------------------------------------------------------- Michael Brodeur Digital Equipment Corporation DEC FUSE Development 110 Spit Brook Road ZKO-2/3Q08 mbrodeur@zko.dec.com Nashua, NH 03062 -----------------------------------------------------------------------------