From 77fc030c035c7c42c155f1a0207ef20a5b70864b Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Sun, 14 Oct 2018 00:57:22 +0900 Subject: [PATCH] feat: copy files from sub directories; close #468 Supporting nested directories is an anti-feature. It exists only so that we can install certain packages that are structured that way. All functions will share the same scope and location. --- fisher.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fisher.fish b/fisher.fish index e01b1cc..920f392 100644 --- a/fisher.fish +++ b/fisher.fish @@ -284,7 +284,7 @@ end function _fisher_pkg_install -a pkg set -l name (command basename $pkg) - set -l files $pkg/{functions,completions,conf.d}/* $pkg/*.fish + set -l files $pkg/{functions,completions,conf.d}/**.* $pkg/*.fish for source in $files set -l target (command basename $source) switch $source @@ -313,7 +313,7 @@ end function _fisher_pkg_uninstall -a pkg set -l name (command basename $pkg) - set -l files $pkg/{conf.d,completions,functions}/* $pkg/*.fish + set -l files $pkg/{conf.d,completions,functions}/**.* $pkg/*.fish for source in $files set -l target (command basename $source) set -l filename (command basename $target .fish)