mirror of
https://github.com/jorgebucaran/fisher
synced 2024-11-09 07:10:27 +00:00
Fix load order during installation. Close #170.
Now snippets can safely invoke functions defined in the plugin function directory. Thanks @orangecms.
This commit is contained in:
parent
2b43beb324
commit
24bebe7811
@ -1,7 +1,7 @@
|
||||
function __fisher_plugin_walk -a plugin path
|
||||
debug "Walk %s" "$path"
|
||||
|
||||
for file in $path/{*,{conf.d,modules}/*,functions/**}.{fish,load} $path/completions/*.fish
|
||||
for file in $path/{functions/**,*,{conf.d,modules}/*}.{fish,load} $path/completions/*.fish
|
||||
set -l name (basename $file .fish)
|
||||
set -l base $name.fish
|
||||
|
||||
|
18
test/fixtures/path-walk/foobar-path-walk
vendored
18
test/fixtures/path-walk/foobar-path-walk
vendored
@ -1,3 +1,5 @@
|
||||
--source functions/foobar-baz.fish foobar-baz
|
||||
--source functions/__foobar.fish __foobar
|
||||
--source conf.d/foobar.before.init.fish
|
||||
--source conf.d/foobar.config.fish
|
||||
--source functions/fish_greeting.fish fish_greeting
|
||||
@ -10,17 +12,15 @@
|
||||
--uninstall
|
||||
--source conf.d/foobar.conf.fish
|
||||
--source conf.d/foobar.mod.fish
|
||||
--source functions/foobar-baz.fish foobar-baz
|
||||
--source functions/__foobar.fish __foobar
|
||||
--source conf.d/foobar.load.fish
|
||||
--source completions/foobar.fish
|
||||
-- functions/foobar.py
|
||||
-- functions/foobar.rb
|
||||
-- functions/foobar.php
|
||||
-- functions/foobar.pl
|
||||
-- functions/foobar.awk
|
||||
-- functions/foobar.sed
|
||||
-- functions/quux.awk
|
||||
-- conf.d/foobar.py
|
||||
-- conf.d/foobar.rb
|
||||
-- conf.d/foobar.php
|
||||
-- conf.d/foobar.pl
|
||||
-- conf.d/foobar.awk
|
||||
-- conf.d/quux.awk
|
||||
-- conf.d/foobar.sed
|
||||
--man man/man1/foobar.1
|
||||
--man man/man2/foobar.2
|
||||
--man man/man3/foobar.3
|
||||
|
Loading…
Reference in New Issue
Block a user