Operating System - HP-UX
1836995 Members
2175 Online
110111 Solutions
New Discussion

Re: How to set up ESC hotkeys

 
SOLVED
Go to solution
Mike_316
Frequent Advisor

How to set up ESC hotkeys

Hey Gang,

I know this is simple, but how do I set up the ability to use the ESC hotkeys, I.E.ESC-K to get the previously used command, or ESC-ESC to get a filename completion?

I know it needs to be setup in the profile, but HOW :-)

Thanks!
Mike
"If we treated each person we met as if they were carrying an unspeakable burden, we might treat each other as we should" - Dale Carnegie
4 REPLIES 4
SHABU KHAN
Trusted Contributor
Solution

Re: How to set up ESC hotkeys

Hi,

Add this line to your .profile

EDITOR=/usr/bin/vi
export EDITOR

set -o vi

This will set your filename completion and your history information...

Thanks,
Shabu
Uday_S_Ankolekar
Honored Contributor

Re: How to set up ESC hotkeys

Hi,
Add this line in your .profile to create .history file in home directory.

HISTFILE=$HOME/.history
export HISTFILE

This would help you use previous command.

YOu can also set the size of the .history file.

Goodluck
-USA..
Good Luck..
Uday_S_Ankolekar
Honored Contributor

Re: How to set up ESC hotkeys

Hi again..

My above answer is good if you have k shell.(ksh)
Good Luck..
Mike_316
Frequent Advisor

Re: How to set up ESC hotkeys

Thanks! Right on the money as always!!!!
"If we treated each person we met as if they were carrying an unspeakable burden, we might treat each other as we should" - Dale Carnegie