mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
Add kmutil ArgumentParser completions
This is another one like Shortcuts.
This commit is contained in:
parent
e0b67ed466
commit
f910133c82
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!
|
# 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
|
# 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
|
command shortcuts --generate-completion-script=fish | source
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user