mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
added optirun plugin completion
This commit is contained in:
parent
ec37c05cb3
commit
35f42f021b
1 changed files with 19 additions and 0 deletions
19
plugins/optirun/_optirun
Normal file
19
plugins/optirun/_optirun
Normal 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'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue