Create functions, conf.d, and completions in $fisher_path

Create fish config directories if they don't exist
before installing plugins. We'd already fixed this,
but f4b32b34 brought back #598, as it modifies how
we copy files into $fisher_path.
This commit is contained in:
Jorge Bucaran 2020-11-13 17:05:23 +09:00
parent f4b32b3419
commit cc06470da1

View file

@ -135,6 +135,10 @@ function fisher -a cmd -d "fish plugin manager"
end
end
if set -q update_plugins[1] || set -q install_plugins[1]
command mkdir -p $fisher_path/{functions,conf.d,completions}
end
for plugin in $update_plugins $install_plugins
set -l source $source_plugins[(contains --index -- "$plugin" $fetch_plugins)]
set -l files $source/{functions,conf.d,completions}/*