diff --git a/fish/functions/fish_user_key_bindings.fish b/fish/functions/fish_user_key_bindings.fish index c671e9f..eb654f7 100644 --- a/fish/functions/fish_user_key_bindings.fish +++ b/fish/functions/fish_user_key_bindings.fish @@ -2,6 +2,12 @@ function fish_user_key_bindings bind \cb battery bind \cq fkill + # By default, Ctrl+L clears the screen + # Add binding Ctrl+Alt+L to clear screen AND scrollback buffer + bind \e\f 'clear; commandline -f repaint' + bind -M insert \e\f 'clear; commandline -f repaint' + bind -M visual \e\f 'clear; commandline -f repaint' + # Bindings for fzf if command -q brew source (brew --prefix)/opt/fzf/shell/key-bindings.fish