Feat: add substring search for zsh
This commit is contained in:
parent
310354456e
commit
8693f9157f
@ -1,7 +1,7 @@
|
|||||||
fpath+=$ZDOTDIR/pure
|
fpath+=$ZDOTDIR/pure
|
||||||
|
|
||||||
autoload -U compinit
|
autoload -U compinit
|
||||||
zstyle ':completion:*' menu select
|
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' menu select
|
||||||
zmodload zsh/complist
|
zmodload zsh/complist
|
||||||
compinit
|
compinit
|
||||||
_comp_options+=(globdots) # Include hidden files.
|
_comp_options+=(globdots) # Include hidden files.
|
||||||
@ -52,6 +52,15 @@ ZSH_AUTOSUGGEST_STRATEGY=(history completion)
|
|||||||
# git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.config/zsh/
|
# git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.config/zsh/
|
||||||
source ~/.config/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source ~/.config/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
|
||||||
|
# Substring search
|
||||||
|
# git clone https://github.com/zsh-users/zsh-history-substring-search ~/.config/zsh
|
||||||
|
source ~/.config/zsh/zsh-history-substring-search/zsh-history-substring-search.zsh
|
||||||
|
|
||||||
|
bindkey '^[[A' history-substring-search-up
|
||||||
|
bindkey '^[[B' history-substring-search-down
|
||||||
|
bindkey -M vicmd 'k' history-substring-search-up
|
||||||
|
bindkey -M vicmd 'j' history-substring-search-down
|
||||||
|
|
||||||
# Auto-ls
|
# Auto-ls
|
||||||
source ~/.config/zsh/auto-ls/auto-ls.zsh
|
source ~/.config/zsh/auto-ls/auto-ls.zsh
|
||||||
|
|
||||||
|
@ -50,6 +50,13 @@
|
|||||||
with_items: "{{ dotusers }}"
|
with_items: "{{ dotusers }}"
|
||||||
when: prompt == 'zsh'
|
when: prompt == 'zsh'
|
||||||
|
|
||||||
|
- name: dotiles -- clone zsh zsh-history-substring-search
|
||||||
|
git:
|
||||||
|
repo: https://github.com/zsh-users/zsh-history-substring-search
|
||||||
|
dest: /home/{{ item.username }}/.config/zsh/zsh-history-substring-search
|
||||||
|
with_items: "{{ dotusers }}"
|
||||||
|
when: prompt == 'zsh'
|
||||||
|
|
||||||
- name: dotiles -- clone zsh auto-ls
|
- name: dotiles -- clone zsh auto-ls
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/desyncr/auto-ls
|
repo: https://github.com/desyncr/auto-ls
|
||||||
|
Loading…
Reference in New Issue
Block a user