-
Notifications
You must be signed in to change notification settings - Fork 73
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
Auto-expand tilde (home directory) for universal variable nvm_data
#190
Comments
Or perhaps just change the variable scope to global? 🤓 |
If that works ok, sure :) |
Following the above recommendation, I changed Is this something you'd be interested in this project doing? If so, I wouldn't mind making the PR. |
|
👋🏼 just stumbled across this while syncing config with glad to help PR, test, buy coffee, etc. 😆 p.s. many thanks for your contributions to the community, @jorgebucaran. awesome work! |
We could just revert the scope of nvm_data as per @debashisbiswas' suggestion. See the commit above to see why we changed the scope to universal. Thank you, @rhenning! 😁 |
The world is such a small place... I am in the very same situation! I've been watching this issue for a long time, and I am also available for anything! |
I read through the issues that this commit was meant to fix. To provide context for this discussion: the reason it was made universal is to avoid requiring the user to restart their terminal after installing, and to avoid issues in which their config was set up to use |
I would love to think of a way to fix this, but I'm afraid that the context @debashisbiswas provided is not enough for me to fully understand ths issue 😕 any other hint would be greatly appreciated |
@lorthirk It's been a few months, so I've forgotten the specifics, but I can try to give you a bit more context. Looking at 2f2af43 and the related issues, there seem to be a few reasons why the variable was made universal. The issues in question are #130, #139, and #140. Universal variables are applied immediately, and available to all sessions. On the other hand, global variables are per-session, and must be set before they are used within the session. Previously, the global variables were set in Also, config files in fish are loaded on startup in a specific order. If the user's config is set up to use |
Thanks @debashisbiswas. Now that you explained it in such an easy to understand way, I'm not so sure any fix we could come up with would be better than "hackish". I have a naive question: would be that bad to add a warning message when installing What do you guys think? |
Fixed. Thanks, everyone! 🙌 |
This is the same issue as fixed here jorgebucaran/fisher#611
Currently
nvm_data
is set to something likenvm_data:/home/userA/\x2elocal/share/nvm
which makes it harder to sync the fish_variables file. This could be solved the same way as was done for fisher, which would it possible/easier to sync the dotfiles.(Since you are the author for both @jorgebucaran you know what this is about, hence why I am not more specific)
The text was updated successfully, but these errors were encountered: