Control + L not clearing screen
6,253
Solution 1
remap control :
bind -x '"\C-l": clear'
Solution 2
I typically have a ~/.inputrc
where I put following bindings
"\C-p":previous-history
"\C-n":next-history
"\C-a.":beginning-of-line
"\C-e.":end-of-line
"\C-l":clear-screen
Author by
Adam
Updated on September 18, 2022Comments
-
Adam almost 2 years
When I try to clear my terminal screen on OSX:
computer@ ~ () $ ^L
And when I hit Enter after that it just shows:
-bash: : command not found
Any ideas on how this happens?
My
.bash_profile
,.profile
, and.bashrc
are empty.-
Adam almost 10 yearsThat worked, however I'm curious of how it came unbound.
-
Raza almost 10 yearsi am not sure.. should check default value I don't know where they defined..
-
-
helix over 5 years+1 for the
.inputrc
solution. -
SamAndrew81 over 4 yearsThis works in the session, but the problem always comes back in the next session. How can I make this persistent? EDIT: Phillppe's answer below worked. :)
-
SamAndrew81 over 4 yearsBest answer here - it is persistent.