Open Seize-cf opened 4 months ago
@Seize-cf,
Sorry for the delay in response.
.
while sourcing?nvm
oh-my-zsh plugin?export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" [ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"
Please confirm that this bug is reproducible with a minimal Zinit config (i.e., only loading nvm-related {plugin,snippet}s).
Wait, I just realized you are sourcing oh-my-zsh? Why are you doing that?
~I wasn't able to reproduce this issue. I suspect it is due to something else in your config.~
~I tested your config and it works for me.~
I can reproduce it, but please supply a minimal config where the issue appears. I do not want to debug your config and plugins.
~I wasn't able to reproduce this issue. I suspect it is due to something else in your config.我无法重现这个问题。我怀疑这是由于您的配置中的其他内容造成的。~
~I tested your config and it works for me.我测试了你的配置,它对我有用。~
I can reproduce it, but please supply a minimal config where the issue appears. I do not want to debug your config and plugins.我可以重现它,但请提供出现问题的最小配置。我不想调试你的配置和插件。
settings below can both reproduce this bug
export ZSH="$HOME/.oh-my-zsh"
source $ZSH/oh-my-zsh.sh
plugins=(git nvm)
if [[ ! -f $HOME/.local/share/zinit/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 "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit"
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \
print -P "%F{33} %F{34}Installation successful.%f%b" || \
print -P "%F{160} The clone has failed.%f%b"
fi
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
export ZSH="$HOME/.oh-my-zsh"
source $ZSH/oh-my-zsh.sh
if [[ ! -f $HOME/.local/share/zinit/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 "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit"
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \
print -P "%F{33} %F{34}Installation successful.%f%b" || \
print -P "%F{160} The clone has failed.%f%b"
fi
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
What happened?
no error message
Steps to reproduce
nvm use
in terminalRelevant output
Screenshots and recordings
Operating System & Version
OS: darwin23.0 | Vendor: apple | Machine: x86_64 | CPU: x86_64 | Processor: i386 | Hardware: x86_64
Zsh version
zsh 5.9 (x86_64-apple-darwin23.0)
Terminal emulator
xterm-256color
If using WSL on Windows, which version of WSL
None
Additional context
here's my
.zshrc
filewhen I comment out the zinit-related configuration, there are no more error messages
Code of Conduct