Comments (4)
Sorry for the delay in response.
- Why are you escaping the
.
while sourcing? - Why do you have the lines below if you are using the
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).
from zinit.
Wait, I just realized you are sourcing oh-my-zsh? Why are you doing that?
from zinit.
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.
from zinit.
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
from zinit.
Related Issues (20)
- [bug]: `_local` prefixed plugins incorrectly shown as unloaded in `zinit plugins` command HOT 2
- [bug]: curl: (22) The requested URL returned error: 404 HOT 3
- [bug]: `arch` binary is not available on Synology HOT 2
- [bug]: Unknown subcommand: `--help` HOT 4
- [bug]: Often get database is locked HOT 3
- [bug]: zinit update does not pull stable release from GitHub releases HOT 3
- [bug]: zinit self-update fails with a git error due to conflicting branches HOT 2
- [bug]: `zinit update --parallel` leaves some zombie background process HOT 1
- [maint]: Re-add `--no-pager` option to `zinit self-update` HOT 1
- [bug]: Loading completion with `wait` doesn't work
- [bug]: Cannot load zsh-edit
- [bug]: multiple issues with new `make` ice
- [feat]: Allow specifying parts of a version HOT 1
- [bug]: compinit:527: no such file or directory: ~/.local/share/zinit/completions/_nvm HOT 2
- [bug]: kubectl not loading when zinit snippet OMZP::kubectl HOT 1
- [feat]: gitea support
- [bug]: compdef is not defined after loading zinit HOT 1
- [bug]: Some of snippets don't load unless .zshrc source manually
- [bug]: Picks wrong atuin binary HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zinit.