tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Cody Wang <cwang@berkshirecc.edu>
Subject: Summary: how to press up arrow key repeat last command
Date: Thu, 26 May 2005 08:31:34 -0400	[thread overview]
Message-ID: <s295897b.029@BCC-GWIA.berkshirecc.edu> (raw)

>>> Cody Wang 05/26 8:12 AM >>>
[repeat last command by press up arrow key in true64]

If you use BourneAgain Shell (bash) or Z Shell (zsh), you'll have it
out 
of the box 
==================

in ksh check shell first 
$ env | grep -i shell  or 
# env | grep -i shell 

If you don't then use;

# chsh -s `which ksh` <username>

export TERM=vt320 

Check your .profile and the global /etc/profile to see if the upkeys
are
Disabled======================

then put this in .profile "set -o emacs" "set -o gmacs"

set -o emacs  # Enable emacs style editing, like bash
              # Cursor up for previous command
set -o vi     # Enable vi style command editing
              # ESC and then "k" for previous command
Not all shells offer you the up arrow capability.  Bash (the default
Linux
shell), tcsh, and perhaps ksh off this feature.  Take a look at
/etc/shells
to see which shells are offered on your system.
-===============
exec ksh -o emacs
you would need to use the 'bash' shell for that.  Default for tru64 is

probably csh or sh.

You can download bash from http://www.gnu.org/software/bash/bash.html 

or

it might come on some TRU64 open source CDs.

install tcsh from your open source software collection CD. Then type
/bin/tcsh or /usr/local/bin/tcsh and all works.

==================================
get bash: compile, install and add to /etc/shells


The final conculusion is that wyse50 term emulation cannot work that it
has to be vt320/420. So, that stick with wyse50 or continue search for
answer. We can use alias switch term but very trouble. 




Best Regards, 
Cody Wang

Database Programmer Analyst 
Berkshire Community College
1350 West Street
Pittsfield, MA 01201
413-499-4660 x497


Best Regards, 
Cody Wang

Database Programmer Analyst 
Berkshire Community College
1350 West Street
Pittsfield, MA 01201
413-499-4660 x497

>>> "John Welsh" <johnwelsh@optusnet.com.au> 05/25 7:35 PM >>>
Hi Cody,
	I am interested in seeing what the responses
	were from your command recall question.

	Could you please send a summary to the list.

Thank you and Best Regards,

John Welsh.
===========
Sydney, Australia.


-----Original Message-----
From: tru64-unix-managers-owner@ornl.gov 
[mailto:tru64-unix-managers-owner@ornl.gov]On Behalf Of Cody Wang
Sent: Wednesday, 25 May 2005 10:07
To: tru64-unix-managers@ornl.gov 
Subject: Thank you! RE: how to press up arrow key repeat last command


Thank you very much for everyone's answer. I got about 30 emals  about
how to press up arrow key repeat last command that apparently this is
very common question. I need to keep learning. : )


Best Regards, 
Cody Wang

Database Programmer Analyst 
Berkshire Community College
1350 West Street
Pittsfield, MA 01201
413-499-4660 x497




Best Regards, 
Cody Wang

Database Programmer Analyst 
Berkshire Community College
1350 West Street
Pittsfield, MA 01201
413-499-4660 x497


                 reply	other threads:[~2005-05-26 12:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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