[SunHELP] doskey

Baki Sahin sunhelp at sunhelp.org
Fri Jul 20 09:40:56 CDT 2001


To enable the arrows to recall your previous commands using the Korn Shell,
edit the following setup in your local .profile:

ENV=.kshrc
HISTSIZE=60
HISTFILE=$HOME/.history
export ENV HISTSIZE HISTFILE

Your .kshrc file will contain the following:

set -o emacs
alias __A=`echo "\020"` #up arrow
alias __B=`echo "\016"` #down
alias __C=`echo "\006"` #right
alias __D=`echo "\002"` #left
alias __H=`echo "\001"` #home

You MUST have the two underscore characters in front of "A B C D H". The
echo statement must be enclosed in back (`) tics (the key which also has the
~), NOT single quotes(').

If your login shell is ksh then you are all set. If your login shell is sh,
then after logging in, type ksh. This will execute the commands in .kshrc
and enable your arrows for command line recall.

If you are using the ksh, just re-source the .profile by typing:

. $HOME/.profile

and your changes will take affect.



----- Original Message -----
From: "babak daneshpajoh" <bbabbak at yahoo.com>
To: <sunhelp at sunhelp.org>
Sent: Friday, July 20, 2001 5:05 PM
Subject: [SunHELP] doskey


| hi
| i want to know can i have something like doskey
| in solaris.
|
|
| thanks
| babak
|
| __________________________________________________
| Do You Yahoo!?
| Get personalized email addresses from Yahoo! Mail
| http://personal.mail.yahoo.com/
| _______________________________________________
| SunHELP maillist  -  SunHELP at sunhelp.org
| http://www.sunhelp.org/mailman/listinfo/sunhelp
|



More information about the SunHELP mailing list