summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2022-01-09 14:28:02 +0000
committerGrégoire Duchêne <gduchene@awhk.org>2022-01-09 14:38:41 +0000
commit979a01b467376b4f49022bd74dfabd97ce682f4e (patch)
tree3ff2b79383b971041a424b9ead5afc5780b71c37 /zsh
parent775630a2e9dc31bd3a810f4a9a2e78495122d367 (diff)
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.
Diffstat (limited to 'zsh')
-rw-r--r--zsh/profile6
-rw-r--r--zsh/rc2
2 files changed, 6 insertions, 2 deletions
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