From: mbrodeur@homer.zko.dec.com (Michael Brodeur)
Subject: Re: Retyping commands in DEC Unix
Date: 1996/02/06 [thread overview]
Message-ID: <4f7ll5$340@lead.zk3.dec.com> (raw)
In-Reply-To: 4f63l5$8m@lll-winken.llnl.gov
In Article <jdesbien-2708561955540001@tty39.lino.com>
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
-----------------------------------------------------------------------------
next prev parent reply other threads:[~1996-02-06 5:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <jdesbien-2708561955540001@tty39.lino.com>
1996-02-05 5:00 ` Retyping commands in DEC Unix oberman
1996-02-06 5:00 ` Michael Brodeur [this message]
1996-02-05 5:00 ` Ron Natalie
1996-02-06 5:00 ` Bob Manners
1996-02-06 5:00 ` Dan Pop
1996-02-06 5:00 ` Tim Llewellyn
1996-02-06 5:00 ` Dan Pop
1996-02-12 5:00 ` David Pikcilingis
1996-02-06 5:00 ` Phillip Helbig
1996-02-07 5:00 ` Simon-Pierre Cote
1996-02-08 5:00 ` Jeff Diewald
1996-02-12 5:00 ` Alex Kok
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox