From 3607d68a10bda881d58271bb66b6c5cdf7d0473a Mon Sep 17 00:00:00 2001 From: kat witch Date: Sat, 14 Aug 2021 02:57:21 +0100 Subject: [PATCH] zeesh history search bindings --- depot/users/kat/base/zsh.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/depot/users/kat/base/zsh.nix b/depot/users/kat/base/zsh.nix index 8a0597a2..306a7e5f 100644 --- a/depot/users/kat/base/zsh.nix +++ b/depot/users/kat/base/zsh.nix @@ -45,6 +45,14 @@ in { zstyle ':completion:*:complete:pass:*:*' matcher 'r:|[./_-]=** r:|=*' 'l:|=* r:|=*' ${lib.concatStringsSep "\n" (map (opt: "setopt ${opt}") zshOpts)} source ${./zshrc-vimode} + bindkey '^ ' autosuggest-accept + autoload -Uz history-search-end +zle -N history-beginning-search-backward-end \ + history-search-end +zle -N history-beginning-search-forward-end \ + history-search-end +bindkey "\e[5~" history-beginning-search-backward-end +bindkey "\e[6~" history-beginning-search-forward-end echo ""; akiflags -rb; ''; shellAliases = {