-
-
Notifications
You must be signed in to change notification settings - Fork 8k
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
Empty .nvmrc file displays help text on sourcing #1113
Comments
I solved my problem by commenting out this line of code at the bottom of the
I hope that doesn't break anything. |
@jeffmikels So first, definitely do not make any edits to |
I removed the homebrew version of nvm. I Installed it using the curl command. I removed the lines from
I STILL get the I think this is undesirable and therefore a bug. In the meantime, I have again commented out the |
@jeffmikels thanks for following up! would you be able to share the contents of |
Also, just to confirm - if you set your |
To eliminate all bashrc and bash_profile problems, I can reproduce the problem using only sh.
or even better, a totally clean environment
Both still display the |
Wow, that's super odd - the |
/Volumes/Jeff = $HOME |
aha, i wonder if having |
I can't see how it would matter, and this error only started recently.
However, I installed nvm under another user account on my Mac where $HOME
points to a directory under /Users and the nvm.sh script executes properly
without displaying the help text.
Therefore, I think it must have something to do with my user environment OR
with the fact that the HOME directory is in a non-standard location.
Further testing must be done.
|
Thanks for working through it so far :-) My suspicion is having it on a separate volume. If you could share your bash profile file in a gist (with sensitive parts blotted out) that might help as well. |
I moved the .bash_profile and the .bashrc out of my home directory entirely, opened a new terminal and the error persisted. Something in the script must be incompatible with my HOME setup. When I log in without the .bash_profile or .bashrc, this is what my environment looks like: TERM_PROGRAM=Apple_Terminal |
Is |
Mac default... Case Insensitive
|
I have confirmed the following strange behavior:
No help text shown in either case.
Help text IS shown. The help text displays depending on the current working directory, and only seems to show when my current working directory is |
Do you see the same behavior when you run |
I DO get the same behavior with
The help text no longer shows up unless I want it to. Why would that make a difference? Before, I had these aliases set:
Now, I have these:
|
OK - in that case, it's related to the automatic behavior of |
Currently, |
ok that's the issue :-) the file is assumed to have contents if it's present. I assume as well that if you |
Yes, yes it does. If Finally, I was under the assumption that Is there documentation about the |
Found it... now I understand. |
That's correct - although it's totally fine to use it at the user level, and I do so. It just can't be an empty file :-) I'm going to reopen this to track fixing the issue though, an empty |
Thanks for working through this with me. |
Thank you!! |
I have the following lines in my .bash_profile
nvm
seems to be working fine, but I get the Node Version Manager help text displayed on my console on every login. It also happens whenever I execute. "$(brew --prefix nvm)/nvm.sh"
from any command line. Clearly, after sourcing the file, thenvm
function is getting called with no arguments. What is causing that?I'm running bash on Mac OS X El Capitan.
The text was updated successfully, but these errors were encountered: