fish: binding to clear scrollback buffer

This commit is contained in:
Charles Gould 2020-07-08 02:26:58 -04:00
parent 35aa8b0ef4
commit 918c0c33db

View File

@ -2,6 +2,12 @@ function fish_user_key_bindings
bind \cb battery bind \cb battery
bind \cq fkill 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 # Bindings for fzf
if command -q brew if command -q brew
source (brew --prefix)/opt/fzf/shell/key-bindings.fish source (brew --prefix)/opt/fzf/shell/key-bindings.fish