mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-26 18:01:03 +02:00
zsh-workers/9262
This commit is contained in:
parent
9917716844
commit
c5b7a61b52
5 changed files with 9 additions and 9 deletions
|
@ -3,13 +3,13 @@
|
|||
local expl
|
||||
|
||||
if [[ "$words[2]" = -*d* ]]; then
|
||||
if compset -P 1 '*\='; then
|
||||
if compset -P 1 '*='; then
|
||||
_wanted -C -d-value files && _path_files -g '*(-/)'
|
||||
else
|
||||
_wanted -C -d named-directories expl 'named directory' &&
|
||||
compadd "$expl[@]" -q -S '=' - "${(@k)nameddirs}"
|
||||
fi
|
||||
elif compset -P 1 '*\='; then
|
||||
elif compset -P 1 '*='; then
|
||||
_wanted -C value values expl 'executable file' &&
|
||||
_files "$expl[@]" -g '*(*)'
|
||||
else
|
||||
|
|
|
@ -202,7 +202,7 @@ while [[ -n "$state" ]]; do
|
|||
tags)
|
||||
if compset -P '*\{'; then
|
||||
_wanted tags expl 'RPM tag' &&
|
||||
compadd "$expl[@]" -M 'm:{a-z}={A-Z}' -S '}' - \
|
||||
compadd "$expl[@]" -M 'm:{a-z}={A-Z}' -S '\}' - \
|
||||
"${(@)${(@f)$(rpm --querytags)}#RPMTAG_}" && ret=0
|
||||
else
|
||||
_message 'RPM format'
|
||||
|
@ -212,7 +212,7 @@ while [[ -n "$state" ]]; do
|
|||
_message 'RPM capability'
|
||||
;;
|
||||
relocate)
|
||||
if compset -P '*\='; then
|
||||
if compset -P '*='; then
|
||||
_description directories expl 'new path'
|
||||
else
|
||||
_description directories expl 'old path'
|
||||
|
|
|
@ -2,17 +2,17 @@
|
|||
|
||||
local expl
|
||||
|
||||
if compset -P 1 'conv\='; then
|
||||
if compset -P 1 'conv='; then
|
||||
# If there's a comma present, ignore up to the last one. The
|
||||
# test alone will have that effect.
|
||||
compset -p '*,'
|
||||
_wanted values expl conversion &&
|
||||
compadd "$expl[@]" -qS, -q \
|
||||
ascii ebcdic ibm block unblock lcase ucase swab noerror sync
|
||||
elif compset -P 1 'if\='; then
|
||||
elif compset -P 1 'if='; then
|
||||
_description files expl 'input file'
|
||||
_files "$expl[@]"
|
||||
elif compset -P 1 'of\='; then
|
||||
elif compset -P 1 'of='; then
|
||||
_description files expl 'output file'
|
||||
_files "$expl[@]"
|
||||
else
|
||||
|
|
|
@ -32,7 +32,7 @@ else
|
|||
fi
|
||||
;;
|
||||
sname)
|
||||
if compset -P '*\='; then
|
||||
if compset -P '*='; then
|
||||
case "$IPREFIX" in
|
||||
*DEVICE\=)
|
||||
_wanted devices expl 'ghostscript device' &&
|
||||
|
|
|
@ -24,5 +24,5 @@ else
|
|||
/^\.include *<bsd\.port\.(subdir\.|pre\.)?mk>/ || /^\.include *".*mk\/bsd\.pkg\.(subdir\.)?mk"/ {
|
||||
print "fetch fetch-list extract patch configure build install reinstall deinstall package describe checkpatch checksum makesum" }' \
|
||||
FS=: $file) && ret=0
|
||||
(( ret )) && { compset -P 1 '*\='; _files }
|
||||
(( ret )) && { compset -P 1 '*='; _files }
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue