blob: a199973114ce4e797a8d85c6caac481f89909d44 (
plain) (
tree)
|
|
# Try to bind tab to complete words and Ctrl-Alt-L to clear the screen
# Already done in ksh93
case $KSH_VERSION in
# More straightforward with mksh; bind keys to the appropriate emacs mode
# editing commands
*'MIRBSD KSH'*)
bind '^I'='complete'
;;
# Similar with pdksh; there's a "complete" command, but not a "clear" one,
# so we fake it with clear(1) and some yanking
*'PD KSH'*)
bind '^I'='complete'
bind -m '^[^L'='^Uclear^J^Y'
;;
esac
|