mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-24 20:51:21 +08:00
add conf.d to require mechanism (#653)
This commit is contained in:
parent
17c1726ae3
commit
355cc597fa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user