feat(zsh): fix history search
This commit is contained in:
parent
459cd7d29d
commit
fb880083d9
|
@ -44,4 +44,4 @@ in
|
||||||
gnome3.gnome-packagekit
|
gnome3.gnome-packagekit
|
||||||
gnome3.epiphany
|
gnome3.epiphany
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue