Replies: 3 comments 7 replies
-
It's a fake plugin to be removed with:
REGISTERED_PLUGINS[-1]=()
under the `%$ZINIT[BIN_DIR]` plugin loaded at the end of zinit.zsh.
sob., 19 lis 2022, 16:39 użytkownik dmorady1 ***@***.***>
napisał:
… Hello,
[image: image]
<https://user-images.githubusercontent.com/29502285/202858708-cd40a13d-42ad-4c71-b58e-87f0e2852dbd.png>
Is it normal that zinit.zsh is loaded that slowly and listed on the plugin
loading times?
My zshrc config for zinit is as follow, maybe I did something wrong? Any
suggestion or also improvement (also generall improvements) are much
appreciated!
### Added by Zinit's installer
if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then
print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit"
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.zinit/bin" && \
print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \
print -P "%F{160}▓▒░ The clone has failed.%f%b"
fi
source "$HOME/.zinit/bin/zinit.zsh"
# autoload -Uz _zinit
# (( ${+_comps} )) && _comps[zinit]=_zinit
# Load a few important annexes, without Turbo
# (this is currently required for annexes)
setopt promptsubst
# first git.zsh then git
zi wait lucid for \
OMZ::lib/git.zsh \
atload"unalias grv" OMZ::plugins/git/git.plugin.zsh
zi wait lucid for \
OMZP::virtualenvwrapper \
OMZP::thefuck \
OMZP::gitignore \
zdharma-continuum/history-search-multi-word \
agkozak/zsh-z
zinit wait lucid light-mode for \
atinit"zicompinit; zicdreplay" \
zdharma-continuum/fast-syntax-highlighting \
atload"_zsh_autosuggest_start" \
zsh-users/zsh-autosuggestions \
blockf atpull'zinit creinstall -q .' \
zsh-users/zsh-completions \
OMZP::docker/_docker \
OMZP::fd/_fd
setopt auto_menu
# setopt magic_equal_subst
zmodload -i zsh/complist
# caching zsh completions
zstyle ':completion:*' accept-exact '*(N)'
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path ~/.zsh_cache
zstyle ':completion:*' menu select
# zstyle ':completion:*:default' menu select=2
# zstyle ':completion:*' list-colors ''
# zsh completion caseinsensitive + Would allow ex<tab> to expand to ElephantExample, but there may be undesired side effects
zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' \
'+l:|?=** r:|?=**'
—
Reply to this email directly, view it on GitHub
<#426>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABOE4CB5SMXYQQRV2YUL3BTWJDYCRANCNFSM6AAAAAASFL4KKY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
2 replies
-
no, it does not have any impact
…On Wed, 30 Nov 2022 at 14:36, dmorady1 ***@***.***> wrote:
Okay, I found my problem. It was a problem with an alias which was
unrelated to zinit.
Does the fake plugin has an impact on my startup time?
—
Reply to this email directly, view it on GitHub
<#426 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABOE4CASUNDPOLO5DUYAVBLWK5Q7FANCNFSM6AAAAAASFL4KKY>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Best regards,
Sebastian Gniazdowski
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dmorady1
-
@dmorady1, you can reduce duplicate code with brace expansion zinit wait lucid for {OMZP::{'virtualenvwrapper','thefuck','gitignore'}} Other examples I personally use in my config Oh-My-Zsh / Preztozi is-snippet \
light-mode \
nocompletions \
for {PZTM::/{'environment','history'},OMZL::{'compfix','completion','git','key-bindings'}.zsh} Annexeszi load for @zdharma-continuum/zinit-annex-{'patch-dl','binary-symlink','submods'} GitHub Releaseszi from'gh-r' \
lbin'!' \
nocompile \
light-mode \
for @{'dandavison/delta','pemistahl/grex','r-darwish/topgrade','sharkdp/'{'fd','hyperfine'}} |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Is it normal that zinit.zsh is loaded that slowly and listed on the plugin loading times?
My zshrc config for zinit is as follow, maybe I did something wrong? Any suggestion or also improvement (also generall improvements) are much appreciated!
I also tried to reinstall zinit by removing it and sourcing zshrc. No improvement was seen 😢
If you have an idea how to fix it, I would be happy to hear it!
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions