From cd1f4c6d2a45f143db953e00b7415d259e6cd3ff Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 8 Jan 2017 10:41:27 +1300 Subject: 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... --- readline/inputrc | 3 +++ 1 file changed, 3 insertions(+) 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" -- cgit v1.2.3