mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
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.
This commit is contained in:
parent
7fdb083c60
commit
01af91773f
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue