mirror of
https://github.com/jorgebucaran/fisher
synced 2024-06-28 23:01:50 +02:00
Use current fish path isntead of fish command (#716)
This commit is contained in:
parent
a4e74bd6f1
commit
b3c5336480
|
@ -72,13 +72,13 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
|
||||||
set --local fetch_plugins $update_plugins $install_plugins
|
set --local fetch_plugins $update_plugins $install_plugins
|
||||||
echo (set_color --bold)fisher $cmd version $fisher_version(set_color normal)
|
echo (set_color --bold)fisher $cmd version $fisher_version(set_color normal)
|
||||||
|
|
||||||
for plugin in $fetch_plugins
|
fish_path=(status fish-path) for plugin in $fetch_plugins
|
||||||
set --local source (command mktemp -d)
|
set --local source (command mktemp -d)
|
||||||
set --append source_plugins $source
|
set --append source_plugins $source
|
||||||
|
|
||||||
command mkdir -p $source/{completions,conf.d,functions}
|
command mkdir -p $source/{completions,conf.d,functions}
|
||||||
|
|
||||||
fish --command "
|
$fish_path --command "
|
||||||
if test -e $plugin
|
if test -e $plugin
|
||||||
command cp -Rf $plugin/* $source
|
command cp -Rf $plugin/* $source
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue