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.
This commit is contained in:
Jorge Bucaran 2018-10-14 00:57:22 +09:00
parent e4629b9186
commit 77fc030c03
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

View file

@ -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)