-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #562 from VorpalBlade/feature/completions
Add zsh completion (issue #478)
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#compdef optimus-manager | ||
|
||
declare -a args | ||
args=( | ||
'(-)'{-h,--help}'[display usage information]' | ||
'(-)'{-V,--version}'[display version information and exit]' | ||
'(-)--status[print current status of optimus-manager]' | ||
'(-)--print-mode[print the GPU mode that your current desktop session is running on]' | ||
'(-)--print-next-mode[print the GPU mode that will be used the next time you log into your session]' | ||
'(-)--print-startup[print the GPU mode that will be used on startup]' | ||
'--switch=[set the GPU mode to MODE, you need to log out then log in to apply the change]:mode:(integrated nvidia hybrid)' | ||
'(--unset-temp-config)--temp-config=[set a path to a temporary configuration file to use for the next reboot ONLY]:path:_files' | ||
'(--temp-config)--unset-temp-config[undo --temp-config (unset temp config path)]' | ||
'--no-confirm[do not ask for confirmation and skip all warnings when switching GPUs]' | ||
'--cleanup[remove auto-generated configuration files left over by the daemon]' | ||
) | ||
|
||
_arguments $args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters