zsh:diffcmds: Add completion function
Completes as the first argument command names and uses then their completion function to complete the rest. TODO: <COMMENT>
This commit is contained in:
14
.config/zsh/completion/_diffcmds
Normal file
14
.config/zsh/completion/_diffcmds
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user