From 28584a89c0f4781a0718802e6729b14e46a553ee Mon Sep 17 00:00:00 2001 From: Shawn Anderson Date: Wed, 8 May 2024 20:13:15 -0700 Subject: [PATCH] Set semi colon to clear as ctrl-l will now be used for tmux navigation. --- dotfiles/.config/fish/config/keys.fish | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dotfiles/.config/fish/config/keys.fish b/dotfiles/.config/fish/config/keys.fish index ee11e3c..91ad2d7 100644 --- a/dotfiles/.config/fish/config/keys.fish +++ b/dotfiles/.config/fish/config/keys.fish @@ -11,9 +11,16 @@ bind \er 'exec fish' bind \cg delete-char # What does this do relative to the above? -bind \cd delete +# bind \cd delete # Replace with because is used as tmux leader key. # Note: Consider alternatives bind \ea beginning-of-line + +# Clear and reprompt +function clear_and_prompt + clear + commandline -f repaint +end +bind \; clear_and_prompt