e097e6bf71
Using the `list` action with `-v` shows all current details for the existing modules. Don't try to install or update external modules, since they have an absolute path instead of a valid URL.
13 lines
413 B
Plaintext
13 lines
413 B
Plaintext
_zimfw_source_zimrc() {
|
|
local -r ztarget=<%= home %>/.zimrc _zflags=${1} _zargs_action=${2}
|
|
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 && ${#_zmodules_zargs} == 0 )); then
|
|
print -u2 -PR "%F{red}<%= failed %>No modules defined in %B${ztarget}%b%f"
|
|
return 1
|
|
fi
|
|
}
|