plugin-nvm
plugin-nvm copied to clipboard
init.fish (line 10): Expected a string, but instead found a '&'
After the most recent fish shell update on Ubuntu, fish loses the ability to find node / nvm. I get the following message on opening terminal.
~/.local/share/omf/pkg/nvm/init.fish (line 10): Expected a string, but instead found a '&'
fenv source $nvm_prefix/nvm.sh >/dev/null ^&1
^
from sourcing file ~/.local/share/omf/pkg/nvm/init.fish
called during startup
in function 'require' with arguments '--path /home/navi/.local/share/omf/pkg/await /home/navi/.local/share/omf/pkg/aws /home/navi/.local/share/omf/pkg/config /home/navi/.local/share/omf/pkg/fish-spec /home/navi/.local/share/omf/pkg/foreign-env /home/navi/.local/share/omf/pkg/nvm /home/navi/.local/share/omf/pkg/omf /home/navi/.local/share/omf/pkg/pisces /home/navi/.local/share/omf/pkg/spark /home/navi/.local/share/omf/pkg/tmux-zen /home/navi/.local/share/omf/pkg/weather'
called on line 24 of file ~/.local/share/omf/init.fish
from sourcing file ~/.local/share/omf/init.fish
called on line 7 of file ~/.config/fish/conf.d/omf.fish
from sourcing file ~/.config/fish/conf.d/omf.fish
called on line 294 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
source: Error while reading file “/home/navi/.local/share/omf/pkg/nvm/init.fish”
Came for this reason too.
I gues it's related to https://github.com/fish-shell/fish-shell/issues/4394, but weird that this didn't happen on 3.0.
I've opened a PR anyway, the fix worked for me locally.
Fix confirmed!