added optirun plugin completion

This commit is contained in:
Alexander Light 2014-02-12 14:41:35 -05:00
parent ec37c05cb3
commit 35f42f021b

19
plugins/optirun/_optirun Normal file
View File

@ -0,0 +1,19 @@
#compdef optirun
local curcontext="$curcontext" environ e
local -a args
zstyle -a ":completion:${curcontext}:" environ environ
for e in "${environ[@]}"
do local -x "$e"
done
args=(
'-V[show version]'
'-h[show help]'
)
_arguments $args \
'(-):command: _command_names -e' \
'*::arguments: _normal'