Commit 355cc597 authored by Derek W. Stavis's avatar Derek W. Stavis Committed by GitHub

add conf.d to require mechanism (#653)

parent 17c1726a
...@@ -31,6 +31,7 @@ function require ...@@ -31,6 +31,7 @@ function require
set function_path $package_path/functions* set function_path $package_path/functions*
set complete_path $package_path/completions* set complete_path $package_path/completions*
set init_path $package_path/init.fish* set init_path $package_path/init.fish*
set conf_path $package_path/conf.d/*.fish
# Autoload functions # Autoload functions
test -n "$function_path" test -n "$function_path"
...@@ -72,6 +73,11 @@ function require ...@@ -72,6 +73,11 @@ function require
end end
source $init $path source $init $path
for conf in $conf_path
source $conf
end
emit init_$package $path emit init_$package $path
set -g omf_init_path $omf_init_path $path set -g omf_init_path $omf_init_path $path
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment