Completes as the first argument command names and uses then their completion function to complete the rest. TODO: <COMMENT>
15 lines
245 B
Plaintext
15 lines
245 B
Plaintext
#compdef diffcmds
|
|
|
|
# Very much simplified version of _sudo
|
|
|
|
local -a args
|
|
|
|
# TODO: complete behind `--` whatever would have been completed at the position
|
|
# of `%%`
|
|
args+=(
|
|
"(-)1: :{ _command_names -e }"
|
|
"*:: :{ _normal }"
|
|
)
|
|
|
|
_arguments $args
|