From cc06470da153e0209953a157b0b101c148c1fce8 Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Fri, 13 Nov 2020 17:05:23 +0900 Subject: [PATCH] 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. --- fisher.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fisher.fish b/fisher.fish index 3f1a46c..73b7f4e 100644 --- a/fisher.fish +++ b/fisher.fish @@ -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}/*