mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-20 03:42:44 +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
|
||||
|
||||
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
|
||||
|
||||
autoload $OMF_CONFIG/functions
|
||||
|
|
Loading…
Reference in New Issue
Block a user