Fix compatibility issue with fish 3.0.x (#719)

I have a docker image that can install fish, but it is version 3.0.2. 
The bash-compatible mechnism fish_path=(status fish-path) command
was not added until after 3.0.2, probably 3.1.
pull/722/head
Austin Ziegler 2 years ago committed by GitHub
parent 7fdb083c60
commit 01af91773f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,6 +28,7 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
set --local arg_plugins $argv[2..-1]
set --local old_plugins $_fisher_plugins
set --local new_plugins
set --local fish_path (status fish-path)
test -e $fish_plugins && set --local file_plugins (string match --regex -- '^[^\s]+$' <$fish_plugins)
@ -74,7 +75,7 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
set --local fetch_plugins $update_plugins $install_plugins
echo (set_color --bold)fisher $cmd version $fisher_version(set_color normal)
fish_path=(status fish-path) for plugin in $fetch_plugins
for plugin in $fetch_plugins
set --local source (command mktemp -d)
set --append source_plugins $source

Loading…
Cancel
Save