add conf.d to require mechanism (#653)

This commit is contained in:
Derek W. Stavis 2018-11-18 19:41:36 -08:00 committed by GitHub
parent 17c1726ae3
commit 355cc597fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,7 @@ function require
set function_path $package_path/functions*
set complete_path $package_path/completions*
set init_path $package_path/init.fish*
set conf_path $package_path/conf.d/*.fish
# Autoload functions
test -n "$function_path"
@ -72,6 +73,11 @@ function require
end
source $init $path
for conf in $conf_path
source $conf
end
emit init_$package $path
set -g omf_init_path $omf_init_path $path