Closed cocoonkid closed 11 months ago
I found Znap allows something like
zstyle '*:compinit' arguments -D -i -u -C -w
@cocoonkid,
This is possible in Zinit as well and is documented in the README.md.
typeset -gAH ZINIT=(HOME_DIR "$HOME/.local/share/zinit" COMPINIT_OPTS '-D -i -u -C -w')
if [[ ! -e "$ZINIT[HOME_DIR]/zinit.git/zinit.zsh" ]]; then
print -P "%F{33}%F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
command mkdir -p "$ZINIT[HOME_DIR]" && command chmod g-rwX "$ZINIT[HOME_DIR]"
command git clone https://github.com/zdharma-continuum/zinit "$ZINIT[HOME_DIR]/zinit.git" && \
print -P "%F{33}%F{34}Installation successful.%f%b" || \
print -P "%F{160}The clone has failed.%f%b"
fi
source "$ZINIT[HOME_DIR]/zinit.git/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
@cocoonkid,
Did my suggestion resolve the issue?
@cocoonkid,
Closing issue due to lack of activity. Please open a new issue if the issue persists.
What happened?
I have at the beginning of my .zshrc
autoload -Uz compinit bashcompinit && compinit -u && bashcompinit && zmodload -i zsh/complist
the -u works here apparently but as soon asI get the prompt again.
I am running this in an automated fashion for a multiuser system so the directories are known and the risk is accepted.
but no matter what I tried I cannot silence the warning appearing when sourcing the zinit.sh
I also tried ZSH_DISABLE_COMPFIX=true in various sourced files, as export , in seperate files sourced at the beginning.
Please let me know how I can silence it globally for zinit.
Operating System & Version
OS: linux-gnu | Vendor: pc | Machine: x86_64 | CPU: x86_64 | Processor: unknown | Hardware: x86_64
Zsh version
zsh 5.9 (x86_64-pc-linux-gnu)
Terminal emulator
xterm-256color