aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ksh/kshrc.d/bind.ksh17
1 files changed, 3 insertions, 14 deletions
diff --git a/ksh/kshrc.d/bind.ksh b/ksh/kshrc.d/bind.ksh
index 34cb5f5a..a1999731 100644
--- a/ksh/kshrc.d/bind.ksh
+++ b/ksh/kshrc.d/bind.ksh
@@ -1,28 +1,17 @@
-# Try to bind ^I to complete words and ^L to clear the screen
+# Try to bind tab to complete words and Ctrl-Alt-L to clear the screen
+# Already done in ksh93
case $KSH_VERSION in
- # ksh93 is lovely, but complex; rebind ^L so it does the same as Alt-^L
- *'93'*)
- keybd_trap() {
- # shellcheck disable=SC2154
- case ${.sh.edchar} in
- $'\f') .sh.edchar=$'\e\f' ;;
- esac
- }
- trap keybd_trap KEYBD
- ;;
-
# More straightforward with mksh; bind keys to the appropriate emacs mode
# editing commands
*'MIRBSD KSH'*)
bind '^I'='complete'
- bind '^L'='clear-screen'
;;
# 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'
+ bind -m '^[^L'='^Uclear^J^Y'
;;
esac