feat(zsh): fix history search

This commit is contained in:
Felix Schröter 2020-03-21 16:31:14 +01:00
parent 459cd7d29d
commit fb880083d9
No known key found for this signature in database
GPG key ID: A12D7C9D2FD34458
2 changed files with 5 additions and 5 deletions

View file

@ -44,4 +44,4 @@ in
gnome3.gnome-packagekit gnome3.gnome-packagekit
gnome3.epiphany gnome3.epiphany
]; ];
} }

View file

@ -55,9 +55,9 @@ in
bindkey -M menuselect 'l' vi-forward-char bindkey -M menuselect 'l' vi-forward-char
bindkey -M menuselect 'j' vi-down-line-or-history bindkey -M menuselect 'j' vi-down-line-or-history
setopt histignoredups setopt HIST_FIND_NO_DUPS
bindkey '^[[A' history-substring-search-up bindkey "$terminfo[kcuu1]" history-substring-search-up
bindkey '^[[B' history-substring-search-down bindkey "$terminfo[kcud1]" history-substring-search-down
bindkey -M vicmd 'k' history-substring-search-up bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down bindkey -M vicmd 'j' history-substring-search-down
''; '';
@ -86,4 +86,4 @@ in
home.file.".envrc".text = '' home.file.".envrc".text = ''
dotenv dotenv
''; '';
} }