mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
Add kmutil ArgumentParser completions
This is another one like Shortcuts.
This commit is contained in:
parent
e0b67ed466
commit
f910133c82
2 changed files with 12 additions and 1 deletions
11
share/completions/kmutil.fish
Normal file
11
share/completions/kmutil.fish
Normal file
|
@ -0,0 +1,11 @@
|
|||
# SYNOPSIS
|
||||
# kmutil <subcommand>
|
||||
# kmutil <load|unload|showloaded>
|
||||
# kmutil <find|libraries|print-diagnostics>
|
||||
# kmutil <create|inspect|check|log|dumpstate>
|
||||
# kmutil <clear-staging|trigger-panic-medic>
|
||||
# kmutil -h
|
||||
|
||||
if [ (command -v kmutil) = /usr/bin/kmutil ]
|
||||
command kmutil --generate-completion-script=fish | source
|
||||
end
|
|
@ -5,7 +5,7 @@
|
|||
# imagine my surprise when I found fish function stirngs in binaries in /usr/bin!
|
||||
|
||||
# checking the path is as expected is about as far as we're going with validation
|
||||
if [ command -v shortcuts = /usr/bin/shortcuts ]
|
||||
if [ (command -v shortcuts) = /usr/bin/shortcuts ]
|
||||
command shortcuts --generate-completion-script=fish | source
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue