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