From 35f42f021b989df19f6de190f7d82213baeac094 Mon Sep 17 00:00:00 2001 From: Alexander Light Date: Wed, 12 Feb 2014 14:41:35 -0500 Subject: [PATCH] added optirun plugin completion --- plugins/optirun/_optirun | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 plugins/optirun/_optirun diff --git a/plugins/optirun/_optirun b/plugins/optirun/_optirun new file mode 100644 index 00000000..ea955838 --- /dev/null +++ b/plugins/optirun/_optirun @@ -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'