aboutsummaryrefslogtreecommitdiff
path: root/readline
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-08 10:41:27 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-08 10:41:53 +1300
commitcd1f4c6d2a45f143db953e00b7415d259e6cd3ff (patch)
tree151b92751c24476d124bb60b2122aa687021b3fa /readline
parentAdjust subshell logic in md() (diff)
downloaddotfiles-cd1f4c6d2a45f143db953e00b7415d259e6cd3ff.tar.gz
dotfiles-cd1f4c6d2a45f143db953e00b7415d259e6cd3ff.zip
Bind Ctrl-Alt-L to clear screen in Bash
Two of the three ksh variants and zsh already do this. So, if you can't beat 'em...
Diffstat (limited to 'readline')
-rw-r--r--readline/inputrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/readline/inputrc b/readline/inputrc
index 5254656e..af82a65d 100644
--- a/readline/inputrc
+++ b/readline/inputrc
@@ -62,6 +62,9 @@ $if Bash
# Alt+A cycles through completion options
"\ea": menu-complete
+ # Ctrl-Alt-L to clear screen; more ksh-like
+ "\e\C-l": clear-screen
+
# Alt-E (for exec) to prepend "exec " to a command and return to the end of
# the line
"\ee": "\C-aexec \C-e"