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:
Jorge Bucaran 2016-03-26 14:41:44 +09:00
parent 2b43beb324
commit 24bebe7811
2 changed files with 10 additions and 10 deletions

View File

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

View File

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