mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Cleaner plugin finder.
This commit is contained in:
parent
599e4fef55
commit
b9819961ea
1 changed files with 2 additions and 2 deletions
4
omz
4
omz
|
|
@ -36,8 +36,8 @@ omz() {
|
|||
# fi
|
||||
|
||||
for plugin ($plugins); do
|
||||
[[ -d $OMZ/plugins/$plugin ]] && fpath=($OMZ/plugins/$plugin $fpath) && continue || \
|
||||
[[ -d $ZSH/plugins/$plugin ]] && fpath=($ZSH/plugins/$plugin $fpath) || omz_log_msg "$plugin not found."
|
||||
files=({$OMZ,$ZSH}/plugins/$plugin(N))
|
||||
[[ -n $files[1] ]] && fpath=($files[1] $fpath) || omz_log_msg "$plugin not found."
|
||||
done
|
||||
|
||||
# Load and run compinit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue