plugin-nvm icon indicating copy to clipboard operation
plugin-nvm copied to clipboard

init.fish (line 10): Expected a string, but instead found a '&'

Open Abourass opened this issue 4 years ago • 3 comments

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”

Abourass avatar Feb 12 '20 19:02 Abourass

Came for this reason too.

J3m5 avatar Feb 12 '20 19:02 J3m5

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.

fabiomargarido avatar Feb 13 '20 11:02 fabiomargarido

Fix confirmed!

benmarten avatar Feb 15 '20 01:02 benmarten