mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-05 05:03:16 +02:00
Merge 92e53481cc into 0808c0f6ef
This commit is contained in:
commit
b3eade1493
1 changed files with 11 additions and 4 deletions
|
|
@ -44,10 +44,17 @@ _arguments -C -s -S "$args[@]" \
|
||||||
|
|
||||||
if [[ "$state" = modules ]]; then
|
if [[ "$state" = modules ]]; then
|
||||||
local -a modules
|
local -a modules
|
||||||
modules=(
|
if ( [[ ${+python_modules} -eq 0 ]] || _cache_invalid python_modules ) \
|
||||||
${${=${(f)"$(_call_program modules $words[1] -c \
|
&& ! _retrieve_cache python_modules; then
|
||||||
'from\ pydoc\ import\ help\;\ help\(\"modules\"\)')"}[2,-3]}:#\(package\)}
|
|
||||||
)
|
modules=(
|
||||||
|
${${=${(f)"$(_call_program modules $words[1] -c \
|
||||||
|
'from\ pydoc\ import\ help\;\ help\(\"modules\"\)')"}[2,-3]}:#\(package\)}
|
||||||
|
)
|
||||||
|
|
||||||
|
_store_cache python_modules modules
|
||||||
|
fi
|
||||||
|
|
||||||
_wanted modules expl module compadd -a modules && return
|
_wanted modules expl module compadd -a modules && return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue