Giter Site home page Giter Site logo

Comments (9)

lukechilds avatar lukechilds commented on August 28, 2024 1

@SimenB Recreated this, working on a fix.

from zsh-nvm.

lukechilds avatar lukechilds commented on August 28, 2024 1

@SimenB Merged 👍

from zsh-nvm.

lukechilds avatar lukechilds commented on August 28, 2024

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.

lukechilds avatar lukechilds commented on August 28, 2024

@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.

SimenB avatar SimenB commented on August 28, 2024

So gk won't work until nvm is loaded?

I'll test tonight

from zsh-nvm.

lukechilds avatar lukechilds commented on August 28, 2024

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.

SimenB avatar SimenB commented on August 28, 2024

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.

lukechilds avatar lukechilds commented on August 28, 2024

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.

SimenB avatar SimenB commented on August 28, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.