-
Hello, i am pretty new to zsh altogether, please don't mind if this is too basic. I was reading the docs and noticed that you have emphasized on having a very optimal order of modules defined in
I just have 2 questions
My current .zshrc is as follows
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
You've got it down for the most part. The only reason order matters with antidote is because many plugins are designed in such a way that order matters. For example, from zsh-history-substring-search:
And zsh-completions adds to your
Of course, I'm biased towards Zephyr, but really if you include any of these towards the end of your I'd also recommend removing romkatv/powerlevel10k
ohmyzsh/ohmyzsh path:plugins/gitfast
ohmyzsh/ohmyzsh path:plugins/colored-man-pages
zimfw/fzf
zdharma-continuum/fast-syntax-highlighting
# completions
zsh-users/zsh-completions path:src kind:fpath
mattmc3/zephyr path:plugins/completion
# load last
zsh-users/zsh-autosuggestions
zsh-users/zsh-history-substring-search One other note on completions. If you want to run compinit yourself and not rely on a plugin to do it, I recommend using Zephyr's confd plugin with antidote like so:
# $ZDOTDIR/.zshrc.d/completions.zsh
autoload -Uz compinit && compinit Your romkatv/powerlevel10k
ohmyzsh/ohmyzsh path:plugins/gitfast
ohmyzsh/ohmyzsh path:plugins/colored-man-pages
zimfw/fzf
zdharma-continuum/fast-syntax-highlighting
# completions
zsh-users/zsh-completions path:src kind:fpath
# conf.d - run compinit, and whatever else you want at this point in .zshrc.d
mattmc3/zephyr path:plugins/confd
# load last
zsh-users/zsh-autosuggestions
zsh-users/zsh-history-substring-search Hope this helps. |
Beta Was this translation helpful? Give feedback.
You've got it down for the most part. The only reason order matters with antidote is because many plugins are designed in such a way that order matters.
For example, from zsh-history-substring-search:
And zsh-completions adds to your
fpath
, and Zsh requires yourfpath
to be fully built before runningcompint
. There are a fewcompint
plugins out there:Of course, I'm biased towards Zephyr, but really if you include any of these towards the end of …