mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Tiny patch, bug discovered by F1skr who wanted a plugin which was only for completion, wan't a real plugin. Also better this way as it checks if the plugin has a $plugin.plugin.zsh file in the $plugin's directory. I.e Autocompletion only
This commit is contained in:
parent
458587a177
commit
f7e38bd272
1 changed files with 2 additions and 1 deletions
3
omz
3
omz
|
|
@ -33,7 +33,8 @@ omz() {
|
|||
# load plugins
|
||||
for plugin ($plugins); do
|
||||
files=({$OMZ,$ZSH}/plugins/$plugin/$(basename $plugin).plugin.zsh(N))
|
||||
source $files[1] || omz_log_msg "$plugin not found."
|
||||
[[ ${#files} -eq 0 ]] && continue
|
||||
source $files[1] || omz_log_msg "$plugin: Error, can't source plugin file."
|
||||
done
|
||||
;;
|
||||
"theme")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue