diff --git a/.config/zsh/completion/_diffcmds b/.config/zsh/completion/_diffcmds new file mode 100644 index 0000000..b1a1f1a --- /dev/null +++ b/.config/zsh/completion/_diffcmds @@ -0,0 +1,14 @@ +#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