mirror of
https://github.com/zdharma-continuum/zinit-configs.git
synced 2025-02-24 22:49:26 +01:00
51 lines
1.2 KiB
Bash
Executable file
51 lines
1.2 KiB
Bash
Executable file
#!/usr/bin/env zsh
|
|
### Added by Zinit's installer
|
|
source ~/.zinit/bin/zinit.zsh
|
|
autoload -Uz _zinit
|
|
(( ${+_comps} )) && _comps[zinit]=_zinit
|
|
### End of Zinit installer's chunk
|
|
|
|
##### BEGIN Zinit stuff #####
|
|
### needs: zinit, fzf
|
|
|
|
# z
|
|
zinit ice wait blockf lucid
|
|
zinit light rupa/z
|
|
|
|
# z tab completion
|
|
zinit ice wait lucid
|
|
zinit light changyuheng/fz
|
|
|
|
# z / fzf (ctrl-g)
|
|
zinit ice wait lucid
|
|
zinit light andrewferrier/fzf-z
|
|
|
|
# cd
|
|
zinit ice wait lucid
|
|
zinit light changyuheng/zsh-interactive-cd
|
|
|
|
# Don't bind these keys until ready
|
|
bindkey -r '^[[A'
|
|
bindkey -r '^[[B'
|
|
function __bind_history_keys() {
|
|
bindkey '^[[A' history-substring-search-up
|
|
bindkey '^[[B' history-substring-search-down
|
|
}
|
|
# History substring searching
|
|
zinit ice wait lucid atload'__bind_history_keys'
|
|
zinit light zsh-users/zsh-history-substring-search
|
|
|
|
# autosuggestions, trigger precmd hook upon load
|
|
zinit ice wait lucid atload'_zsh_autosuggest_start'
|
|
zinit light zsh-users/zsh-autosuggestions
|
|
export ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=10
|
|
|
|
# Tab completions
|
|
zinit ice wait lucid blockf atpull'zinit creinstall -q .'
|
|
zinit light zsh-users/zsh-completions
|
|
|
|
# Syntax highlighting
|
|
zinit ice wait lucid atinit'zpcompinit; zpcdreplay'
|
|
zinit light zdharma/fast-syntax-highlighting
|
|
|
|
##### END Zinit stuff #####
|