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.
pull/480/head
Jorge Bucaran 6 years ago
parent e4629b9186
commit 77fc030c03
No known key found for this signature in database
GPG Key ID: E54BA3C0E646DB30

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

Loading…
Cancel
Save