mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-20 13:24:59 +08:00
Source init.fish
on each plugin.
Unnecessarily sourcing a `$plugin_name.fish` is affecting the loading time.
This commit is contained in:
parent
2040eedc15
commit
ceb31c143a
|
@ -47,8 +47,12 @@ for path in $OMF_PATH/lib $OMF_PATH/lib/git {$OMF_PATH,$OMF_CONFIG}/pkg/* $theme
|
||||||
contains -- (basename $path) $OMF_IGNORE; and continue
|
contains -- (basename $path) $OMF_IGNORE; and continue
|
||||||
|
|
||||||
autoload $path $path/completions
|
autoload $path $path/completions
|
||||||
source $path/(basename $path).fish ^/dev/null
|
|
||||||
and emit init_(basename $path) $path
|
if source $path/init.fish ^/dev/null
|
||||||
|
else
|
||||||
|
source $path/(basename $path).fish ^/dev/null;
|
||||||
|
#and echo "Plugin '"(basename $path)"' has a deprecated structure. Run `omf update`."
|
||||||
|
end; and emit init_(basename $path) $path
|
||||||
end
|
end
|
||||||
|
|
||||||
autoload $OMF_CONFIG/functions
|
autoload $OMF_CONFIG/functions
|
||||||
|
|
Loading…
Reference in New Issue
Block a user