I would like to have Ctrl-l
for clear
in my Bash.
How can you bind Ctrl-l
to clear
in Bash?
I would like to have Ctrl-l
for clear
in my Bash.
How can you bind Ctrl-l
to clear
in Bash?
Put this in your ~/.inputrc
:
C-L: backward-kill-line
(assuming by "clear" you mean "clear current input line"; if you mean "clear screen" then put clear-screen
instead of backward-kill-line
).