From 979a01b467376b4f49022bd74dfabd97ce682f4e Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sun, 9 Jan 2022 14:28:02 +0000 Subject: zsh: Remove custom key bindings C-f and C-r C-r is already bound to history-incremental-search-backward and C-f is redundant with C-s. Also, make C-q and C-s work in zsh. Those keys are traditionally used for software control flow purposes, and it is not something I have ever used (on purpose anyway). Having C-s (and C-q) available in zsh is far more useful. --- zsh/profile | 6 ++++++ zsh/rc | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'zsh') diff --git a/zsh/profile b/zsh/profile index 1861b82..97f766c 100644 --- a/zsh/profile +++ b/zsh/profile @@ -7,6 +7,12 @@ done } +# Make C-q and C-s work in zsh. +# +# See https://en.wikipedia.org/wiki/Software_flow_control for gory +# details. +stty -ixon + source_if_exists dotfiles-${UNAME}/zsh/profile source_if_exists dotfiles-${DOMAIN}/zsh/profile source_if_exists dotfiles-${HOST}/zsh/profile diff --git a/zsh/rc b/zsh/rc index 9c5918a..764bf8a 100644 --- a/zsh/rc +++ b/zsh/rc @@ -45,8 +45,6 @@ alias mv='mv -i' alias senv='env | sort' bindkey -e -bindkey '^F' history-incremental-search-forward -bindkey '^R' history-incremental-search-backward export EDITOR=vim export LESSHISTFILE=${XDG_CACHE_HOME}/less_history -- cgit v1.2.3-70-g09d2