Giter Site home page Giter Site logo

Comments (4)

jorgebucaran avatar jorgebucaran commented on May 28, 2024

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.

marcinjahn avatar marcinjahn commented on May 28, 2024

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.

jorgebucaran avatar jorgebucaran commented on May 28, 2024

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.

marcinjahn avatar marcinjahn commented on May 28, 2024

Thanks, I'll have to educate myself on this a bit more :)

from nvm.fish.

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.