-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binaries conflicting with existing commands creates error #12
Comments
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 👍 |
@SimenB Recreated this, working on a fix. |
@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. |
So I'll test tonight |
No |
if nvm is loaded, then it works though. Why should lazy change that (other than the hit we get loading nvm the first time)? |
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 |
@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 |
@SimenB Merged 👍 |
Such as greenkeeper, which has the short form
gk
, which on my machine is aliased (gk: aliased to \gitk --all --branches
).I then get a warning when nvm loads
gitk:unset:1: no such hash table element: gk
.Worse is trying to use
gk
makes it loop infinitely.etc.
This is using LAZY, tbw.
The text was updated successfully, but these errors were encountered: