+6
-2
.zshrc
+6
-2
.zshrc
···
5
6
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
7
8
zinit wait lucid for \
9
atinit"zicompinit; zicdreplay" \
10
zdharma-continuum/fast-syntax-highlighting \
11
atload"_zsh_autosuggest_start" \
12
zsh-users/zsh-autosuggestions \
13
blockf atpull'zinit creinstall -q .' \
14
-
atload"source <(jj util completion zsh)" \
15
-
atload"source <(COMPLETE=zsh jj)" \
16
zsh-users/zsh-completions
17
18
zinit id-as"auto" for \
···
5
6
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
7
8
+
if [ -x "$(which jj)" ]; then
9
+
JJ_INSTALLED="$(which jj)"
10
+
fi
11
+
12
zinit wait lucid for \
13
atinit"zicompinit; zicdreplay" \
14
zdharma-continuum/fast-syntax-highlighting \
15
atload"_zsh_autosuggest_start" \
16
zsh-users/zsh-autosuggestions \
17
blockf atpull'zinit creinstall -q .' \
18
+
atload"if [ -v JJ_INSTALLED ]; then; source <(jj util completion zsh); fi" \
19
+
atload"if [ -v JJ_INSTALLED ]; then; source <(COMPLETE=zsh jj); fi" \
20
zsh-users/zsh-completions
21
22
zinit id-as"auto" for \