-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc2
50 lines (40 loc) · 1.23 KB
/
.zshrc2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
### Added by Zinit's installer
source ~/.repos/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 #####