mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
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:
parent
e4629b9186
commit
77fc030c03
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue