mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-12-08 06:21:40 +01:00
25 lines
335 B
Text
25 lines
335 B
Text
#autoload
|
|
|
|
local targs tag
|
|
|
|
if [[ "$1" = -C?* ]]; then
|
|
targs=( -C "${1[3,-1]}" )
|
|
shift
|
|
elif [[ "$1" = -C ]]; then
|
|
targs=( -C "$2" )
|
|
shift 2
|
|
else
|
|
targs=()
|
|
fi
|
|
|
|
if [[ "$1" = -[VJ]* ]]; then
|
|
tag="$2"
|
|
else
|
|
tag="$1"
|
|
fi
|
|
|
|
if [[ $# -gt 1 ]]; then
|
|
_tags "$targs[@]" "$tag" && _description "$@"
|
|
else
|
|
_tags "$targs[@]" "$tag"
|
|
fi
|