mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-19 14:51:13 -03:00
Add kmutil ArgumentParser completions
This is another one like Shortcuts.
This commit is contained in:
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user