mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02: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
a205256ce8
commit
2942cca0cd
2 changed files with 10 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
||||||
function __fisher_plugin_walk -a plugin path
|
function __fisher_plugin_walk -a plugin path
|
||||||
debug "Walk %s" "$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 name (basename $file .fish)
|
||||||
set -l base $name.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.before.init.fish
|
||||||
--source conf.d/foobar.config.fish
|
--source conf.d/foobar.config.fish
|
||||||
--source functions/fish_greeting.fish fish_greeting
|
--source functions/fish_greeting.fish fish_greeting
|
||||||
|
@ -10,17 +12,15 @@
|
||||||
--uninstall
|
--uninstall
|
||||||
--source conf.d/foobar.conf.fish
|
--source conf.d/foobar.conf.fish
|
||||||
--source conf.d/foobar.mod.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 conf.d/foobar.load.fish
|
||||||
--source completions/foobar.fish
|
--source completions/foobar.fish
|
||||||
-- functions/foobar.py
|
-- conf.d/foobar.py
|
||||||
-- functions/foobar.rb
|
-- conf.d/foobar.rb
|
||||||
-- functions/foobar.php
|
-- conf.d/foobar.php
|
||||||
-- functions/foobar.pl
|
-- conf.d/foobar.pl
|
||||||
-- functions/foobar.awk
|
-- conf.d/foobar.awk
|
||||||
-- functions/foobar.sed
|
-- conf.d/quux.awk
|
||||||
-- functions/quux.awk
|
-- conf.d/foobar.sed
|
||||||
--man man/man1/foobar.1
|
--man man/man1/foobar.1
|
||||||
--man man/man2/foobar.2
|
--man man/man2/foobar.2
|
||||||
--man man/man3/foobar.3
|
--man man/man3/foobar.3
|
||||||
|
|
Loading…
Reference in a new issue