From 5ee0b2b5c8ac42c7286e072541eeeeb7254f01e6 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sun, 19 Jun 2022 16:41:53 +0200 Subject: Change zsh config to fix up history --- hosts/home.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'hosts') diff --git a/hosts/home.nix b/hosts/home.nix index c581863..96ab3c7 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -128,17 +128,19 @@ in }; initExtra = '' + autoload -U history-search-end #needed for -end + zle -N history-beginning-search-backward-end history-search-end + zle -N history-beginning-search-forward-end history-search-end + #when going up go up only beggining of curr word history - bindkey '\e[A' history-search-backward - bindkey '\e[B' history-search-forward + bindkey '\e[A' history-beginning-search-backward-end + bindkey '\e[B' history-beginning-search-forward-end #ctrl + arrow forward/backward word bindkey "^[[1;5C" forward-word bindkey "^[[1;5D" backward-word #alt + arrow forward/backward word bindkey "^[[1;3C" forward-word bindkey "^[[1;3D" backward-word - #ctrl + delete delete whole word - bindkey '^H' backward-kill-word #alt + delete delete whole word bindkey "\e\x7f" backward-kill-word ''; -- cgit 1.4.1