Files
dotfiles/.config/zsh/completion/_diffcmds
Julian Prein 0e4cf4f947 zsh:diffcmds: Add completion function
Completes as the first argument command names and uses then their
completion function to complete the rest.

TODO: <COMMENT>
2025-05-11 16:26:01 +02:00

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