Part1 - Part2 - Part3 - Part4 - Part5 - Single Page

Top Document: comp.unix.aix Frequently Asked Questions (Part 2 of 5)
Previous Document: 1.400: How do I make an informative prompt in the shell?
Next Document: 1.402: Listing files with ls causes a core dump


[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]

1.401: How do I set up ksh for emacs mode command line editing?


The ksh has an undocumented way of binding the arrowkeys to the emacs
line editing commands. In your .kshrc, add:

alias __A=`echo "\020"`   # up arrow = ^p = back a command
alias __B=`echo "\016"`   # down arrow = ^n = down a command
alias __C=`echo "\006"`   # right arrow = ^f = forward a character
alias __D=`echo "\002"`   # left arrow = ^b = back a character
alias __H=`echo "\001"`   # home = ^a = start of line

Type "set -o emacs" or put this line in your .profile.

Also, you MUST have PTF U406855 for this to work in AIX 3.2.  The APAR #
for the problem is IX25982, which may have been superseded.



Top Document: comp.unix.aix Frequently Asked Questions (Part 2 of 5)
Previous Document: 1.400: How do I make an informative prompt in the shell?
Next Document: 1.402: Listing files with ls causes a core dump

Part1 - Part2 - Part3 - Part4 - Part5 - Single Page


[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
bofh@mail.teleweb.pt (Jose Pina Coelho)

Last Update May 13 2007 @ 00:21 AM