|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
ksh: how to make [up arrow] recall command history
I want to get my up arrow key to recall my previous commands in Korn shell.
Anyone help please? thanks a bunch! BG |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
add the following
lines to the bottom of your .kshrc file in your $HOME directory: set -o emacs alias __A=$(print '\0020') # ^P = up = previous command alias __B=$(print '\0016') # ^N = down = next command alias __C=$(print '\0006') # ^F = right = forward a character alias __D=$(print '\0002') # ^B = left = back a character alias __H=$(print '\0001') # ^A = home = beginning of line |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
I like vi as my editor.
can i do this with vi? |
|
#4
|
||||
|
||||
|
This doesn't change your editor, it puts ksh into emacs mode. And no you can't do this with ksh in vi mode.
|
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to set top arrow to get the history of last used commands | etldev | UNIX for Dummies Questions & Answers | 3 | 08-07-2011 12:13 AM |
| Arrow Keys in read command. | nr_shan | Shell Programming and Scripting | 2 | 09-30-2010 11:22 AM |
| AIX bash history recall | gwfay | UNIX for Dummies Questions & Answers | 7 | 11-09-2009 06:57 PM |
| Is there any way to make up arrow show last command in CSh? | sayeo | Shell Programming and Scripting | 5 | 03-22-2008 11:33 AM |
| i am not able to recall the command typed earlier in unix | murli1200 | UNIX for Advanced & Expert Users | 1 | 08-24-2006 02:52 PM |
|
|