Comments (4)
The documentation covers this functionality. It seems your problem might lie elsewhere. It's possible that another tool or dependency is modifying the PATH after nvm. Alternatively, there could be an unusual configuration on your end. For instance, universal variables are intended for interactive use, and it seems they are being used incorrectly in your case.
Additionally, you might be using an outdated version of Fish.
I'm going to close this issue here, as it does not appear to be a bug in nvm. However, if you provide more details about your configuration, I may be able to help.
from nvm.fish.
Hi @jorgebucaran, interestingly, right now, after a reinstall of your awesome plugin, it all seems to work. However, I admit, I'm new to fish, so I'm not entirely sure what I'm doing sometimes. My config.fish
looks as follows:
set -gx EDITOR vim
set -gx VISUAL vim
set -gx PAGER less
set -gx DOCKER_HOST unix:///run/user/1000/podman/podman.sock
set -gx NVM_LAZY_LOAD true
set -gx NVM_COMPLETION true
set -gx DOTNET_CLI_TELEMETRY_OPTOUT 1
set -gx FUNCTIONS_CORE_TOOLS_TELEMETRY_OPTOUT 1
set -U fish_greeting
set --universal nvm_default_version v18
fish_add_path ~/bin
fish_add_path ~/sbin
fish_add_path ~/scripts
fish_add_path ~/opt/homebrew/bin
fish_add_path ~/opt/homebrew/sbin
fish_add_path ~/opt/local/bin
fish_add_path ~/opt/local/sbin
fish_add_path ~/.bun/bin
fish_add_path ~/.local/share/JetBrains/Toolbox/scripts
fish_add_path ~/.dotnet/tools
if status is-interactive
jump shell fish | source
end
Does it look alright?
Oh, and I'm using fish 3.6.1
from nvm.fish.
Avoid setting universal variables in your config.fish. Refer to the Fish documentation to better understand the purpose and usage of universal variables. Similarly, since fish_add_path
sets universal variables, it's best used interactively, not in your config.fish. Optionally, consider setting EDITOR, VISUAL, PAGER as universal variables too, to streamline your config. Additionally, if you like jump
, you might find fzf.fish interesting.
Fish it's a shell emphasizing interactivity over configuration. This isn't a rule, but a general principle.
from nvm.fish.
Thanks, I'll have to educate myself on this a bit more :)
from nvm.fish.
Related Issues (20)
- nvm install-latest-npm equivalent HOT 4
- Does not handle env variables at startup in VSCode environment (OSX) HOT 20
- install command can fail if run at the same time in multiple terminals HOT 7
- lsr(list-remote), install give me error and list(ls) give me nothing HOT 11
- getting error on line 225 in nvm.fish using fish shell v3.4 & 3.6 HOT 3
- Add nvm exec and nvm run commands HOT 10
- Need to reinstall node on session restart HOT 2
- macOS / brew: After "nvm use default", still node from brew is on path HOT 27
- nvm-exec script HOT 3
- .nvmrc regex too strict HOT 1
- $nvm_default_version not working HOT 2
- note to self - persist across shells
- Did nvm.fish compatible with bash version? HOT 5
- nvm use on new tab terminal HOT 1
- Default version is only set in the interactive shell HOT 2
- NVM not automatically enabled HOT 3
- does not seem to persist to vsc HOT 3
- `nvm use` should always activate given version regardless of `nvm_current_version` HOT 12
- NVM install fails with `Invalid mirror or host unavailable` for some `~/.curlrc` files HOT 2
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 nvm.fish.