home-profile: zsh change substring search
This commit is contained in:
parent
9d791cf738
commit
01c2d9809a
|
@ -65,8 +65,8 @@ in
|
||||||
enableSyntaxHighlighting = true;
|
enableSyntaxHighlighting = true;
|
||||||
enableVteIntegration = true;
|
enableVteIntegration = true;
|
||||||
historySubstringSearch.enable = true;
|
historySubstringSearch.enable = true;
|
||||||
historySubstringSearch.searchUpKey = ";5A";
|
historySubstringSearch.searchUpKey = "$key[Up]";
|
||||||
historySubstringSearch.searchDownKey = ";5B";
|
historySubstringSearch.searchDownKey = "$key[Down]";
|
||||||
|
|
||||||
|
|
||||||
envExtra = ''
|
envExtra = ''
|
||||||
|
@ -106,9 +106,23 @@ in
|
||||||
. ${zshcfg}/zinputrc
|
. ${zshcfg}/zinputrc
|
||||||
source ${zshcfg}/zshcompletion.zsh
|
source ${zshcfg}/zshcompletion.zsh
|
||||||
|
|
||||||
|
history-substring-search-up-prefixed(){
|
||||||
|
HISTORY_SUBSTRING_SEARCH_PREFIXED=1 history-substring-search-up
|
||||||
|
}
|
||||||
|
history-substring-search-down-prefixed(){
|
||||||
|
HISTORY_SUBSTRING_SEARCH_PREFIXED=1 history-substring-search-down
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
zle -N history-substring-search-up-prefixed
|
||||||
|
zle -N history-substring-search-down-prefixed
|
||||||
|
|
||||||
|
|
||||||
bindkey -r "^["
|
bindkey -r "^["
|
||||||
bindkey ";5C" forward-word
|
bindkey ";5C" forward-word
|
||||||
bindkey ";5D" backward-word
|
bindkey ";5D" backward-word
|
||||||
|
bindkey ";5A" history-substring-search-up-prefixed
|
||||||
|
bindkey ";5B" history-substring-search-down-prefixed
|
||||||
|
|
||||||
zsh-private() {
|
zsh-private() {
|
||||||
__MATERUS_HM_ZSH_PRIVATE=1 ${lib.getExe config.programs.zsh.package}
|
__MATERUS_HM_ZSH_PRIVATE=1 ${lib.getExe config.programs.zsh.package}
|
||||||
|
|
Loading…
Reference in New Issue