From 355cc597fa73c71a1638932462a30f162b69d706 Mon Sep 17 00:00:00 2001 From: "Derek W. Stavis" Date: Sun, 18 Nov 2018 19:41:36 -0800 Subject: [PATCH] add conf.d to require mechanism (#653) --- lib/require.fish | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/require.fish b/lib/require.fish index b122d9f..9a13a9c 100644 --- a/lib/require.fish +++ b/lib/require.fish @@ -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