Closed ngocphamm closed 1 year ago
@vladdoster Actually, my bad, but this doesn't work just yet 😦
(($ + functions[.zinit-setup-plugin-dir]))
doesn't seem to be a valid check here. I'm not so sure what this is doing either I tried to search to gain more knowledge about shell/zsh but no luck understanding it yet.
My guess would be we want to check if the function .zinit-setup-plugin-dir
exists before sourcing zinit-install.zsh
, but that doesn't work here yet, even though I can confirm the following
echo $functions[.zinit-setup-params]
prints out the methodecho $functions[.zinit-setup-plugin-dir]
prints out blankBoth commands has exit code of 0
so might be that's the reason why.
Just a shot in the dark, I've tried changing it to the following without success
(( type -f .zinit-setup-plugin-dir 2>/dev/null ))
( type -f .zinit-setup-plugin-dir 2>/dev/null )
type -f .zinit-setup-plugin-dir 2>/dev/null
(($functions[.zinit-setup-plugin-dir]))
Description
Typo was made to this line, so the function contains spaces around the dashes. The script now cannot source
zinit-install.zsh
.Motivation and Context
Related Issue(s)
Usage examples
How Has This Been Tested?
Manual
Types of changes
Checklist: