5bcfb8cc9f
for the same module name. Other minor fixes:
* Show skipping already installed modules with install action and `-v`.
* Consider external module dirs when calling compile action directly, by
making sure _zimfw_source_zimrc is called first.
* Ignore return value from `zargs` with `-P`, as it's oddly returning
123 since Zsh 5.9. Maybe related to these changes:
67f932e7c5
13 lines
386 B
Plaintext
13 lines
386 B
Plaintext
_zimfw_source_zimrc() {
|
|
local -r ztarget=<%= home %>/.zimrc _zflags=${1}
|
|
local -i _zfailed=0
|
|
if ! source ${ztarget} || (( _zfailed )); then
|
|
print -u2 -PR "%F{red}<%= failed %>Failed to source %B${ztarget}%b%f"
|
|
return 1
|
|
fi
|
|
if (( _zflags & 1 && ${#_znames} == 0 )); then
|
|
print -u2 -PR "%F{red}<%= failed %>No modules defined in %B${ztarget}%b%f"
|
|
return 1
|
|
fi
|
|
}
|