Archive for the tag 'ksh'

 

 

Oct 13 2009

Command History with Arrow Keys in Ksh

Published by dave under Aix, Misc, linux, solaris

Arrows aren’t used in ksh as a default. To enable command history like in Bash, add the following lines in the .profile or .kshrc file:

# Switch to Emacs mode
# Only Emacs mode lets you make use of arrow keys
set -o emacs

# Go back in command history (up arrow)
alias __A=’^P’
# Go back in command history (down [...]

No responses yet