Comments (9)
@SimenB Recreated this, working on a fix.
from zsh-nvm.
@SimenB Merged 👍
from zsh-nvm.
Hmmn, definitely an issue with lazy loading.
I'm pretty busy this weekend, I'm probably not going to get a chance to look at this until Monday. Disabling lazy loading should resolve the issue for now.
I'll let you know when it's sorted 👍
from zsh-nvm.
@SimenB Ok, I'm now checking if any commands exist globally before setting the lazy load functions. If they already exist, those commands are ignored. 4c61739
Can you checkout the fix-alias-bug branch and let me know if that resolves the issue for you? If it does I'll merge into master.
from zsh-nvm.
So gk
won't work until nvm is loaded?
I'll test tonight
from zsh-nvm.
No gk
won't work at all because the alias overrides it. That's how it would work without lazy loading. You'll need to remove your gk
alias if you want to use the gk
greenkeeper binary.
from zsh-nvm.
if nvm is loaded, then it works though. Why should lazy change that (other than the hit we get loading nvm the first time)?
from zsh-nvm.
Hmmn, it shouldn't do. The alias should be overwriting the function. That's how it's working on my dev VM.
If you disable lazy loading what happens when you run gk
? Do you run gitk
or Greenkeeper?
from zsh-nvm.
@lukechilds OK, tested now, and you are correct! It's gitk which is run when lazy is false.
And your branch fixes the issue 😄
I had to set lazy to false btw, it seems to default to true. That hasn't happened before, unsure why it happened now
from zsh-nvm.
Related Issues (20)
- NVM_LAZY_LOAD not decreasing load time HOT 3
- nvm dont use default version in new terminals - VScode terminal HOT 3
- NVM_AUTO_USE doesn't work with NVM_LAZY_LOAD until too late HOT 1
- Not working with rails command HOT 1
- NVM_AUTO_USE :: Suppress output HOT 2
- lazy loading causes delay on every command w/ spaceship-prompt theme
- Does zsh-nvm support nvm options completion?
- Something wrong on your last commit HOT 1
- Is there any plan to install it through homebrew?
- Would be great to have ability to install zsh-nvm using homebrew HOT 1
- nvm completion not loading properly HOT 3
- nvm load on session start takes ~30 seconds, lazy load not working HOT 1
- lazy-loading creates "attempt to assign private in nested scope" error
- Is antigen supposed to say "installing nvm" every time I run zsh? HOT 2
- how to set path for global npm binaries?
- zsh complains `(eval):5: parse error near }` when using `NVM_LAZY_LOAD`
- `unknown condition: -ne` when executing `nvm install --lts` while latest LTS version of Node.js is already installed HOT 1
- Set default version HOT 1
- Optimization change causing errors on shell start HOT 2
- How might I do this?
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 zsh-nvm.