Skip to content
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

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

Open
Abourass opened this issue Feb 12, 2020 · 3 comments
Open

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

Abourass opened this issue Feb 12, 2020 · 3 comments

Comments

@Abourass
Copy link

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”
@J3m5
Copy link

J3m5 commented Feb 12, 2020

Came for this reason too.

@fabiomargarido
Copy link

fabiomargarido commented Feb 13, 2020

I gues it's related to fish-shell/fish-shell#4394, but weird that this didn't happen on 3.0.

I've opened a PR anyway, the fix worked for me locally.

@benmarten
Copy link

Fix confirmed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants