jorgebucaran / fisher

A plugin manager for Fish
https://git.io/fisher
MIT License
7.7k stars 263 forks source link

fisher is using fish incompatible commands? #736

Closed JeremyCaron closed 2 years ago

JeremyCaron commented 2 years ago

I can't get fisher to run, every time I try, I get this (complaining about the double pipes):

Unsupported use of '||'. In fish, please use 'COMMAND; or COMMAND'. ~/.config/fish/functions/fisher.fish (line 2): set --query fisher_path || set --local fisher_path $__fish_config_dir ^ from sourcing file ~/.config/fish/functions/fisher.fish called on standard input in command substitution called on standard input source: Error while reading file “/home/jeremy/.config/fish/functions/fisher.fish”

For what it's worth I get the same complaint about the && in the install command when running it in fish.

curl -sL https://git.io/fisher --insecure | source && fisher install jorgebucaran/fisher

Please help, what am I doing wrong?

jorgebucaran commented 2 years ago

Hey @JeremyCaron! Fish version?

JeremyCaron commented 2 years ago

Hey! 2.4.0 @jorgebucaran

Happen to be in Debian in WSL2 on Win 10 in case it matters.

jorgebucaran commented 2 years ago

Ah, just upgrade to Fish >=3.

I should also update the README to indicate system requirements. 😅

JeremyCaron commented 2 years ago

Ah, thanks!!

JeremyCaron commented 2 years ago

The cause of my outdatedness, for anyone else who might find this, was a result of installing Debian in WSL2 the wrong way, which resulted in Debian 9 being installed. Apparently you need to get distros from the app store and not the command line, who knew :(

More info here: https://superuser.com/questions/1722935/wsl-debian-is-still-on-oldoldstable-any-way-to-get-latest

jorgebucaran commented 2 years ago

Thank you for sharing! Good to know. 👍