Operating System - HP-UX
1834514 Members
2382 Online
110068 Solutions
New Discussion

Newbie question--.profile

 
SOLVED
Go to solution
Ken Klein
New Member

Newbie question--.profile

I am trying to write a generic .profile for the ex-VMS/dec unix users in my group. 2 questions:
1. How can I map the arrow keys to do the function of esc k, esc j etc...
2. Is there a way to set up my enviroment so that after recalling the previous command(esc k)I can edit the command without using VI commands? Set -o emacs does not seem to work.(stty?)

Also any other helpful tips on making the transition from VMS/dec unix would be greatly appreciated.
2 REPLIES 2
Michael Tully
Honored Contributor
Solution

Re: Newbie question--.profile

Hi,

By default using the korn shell under HPUX
you will get this functionality. There is a
default .profile from /etc/skel in conjunction
with an setup like below will work.

e.g. a user account from the /etc/passwd file
myaccount:fGFQPN4l/vD1w,A/1O:105:20:User account:/home/user:/usr/bin/ksh

HTH
-Michael
Anyone for a Mutiny ?
Wodisch
Honored Contributor

Re: Newbie question--.profile

Hello,

if you are running X-windows, you could try to map the cursor keys to the vi-sequences (Esc- and H/J/K/L)...
You would have to modify the terminfo data for this, too, though, and set $TERM accordingly :-(

Just an idea,
Wodisch