diff --git a/share/completions/kmutil.fish b/share/completions/kmutil.fish new file mode 100644 index 000000000..2c7bb1d9c --- /dev/null +++ b/share/completions/kmutil.fish @@ -0,0 +1,11 @@ +# SYNOPSIS +# kmutil +# kmutil +# kmutil +# kmutil +# kmutil +# kmutil -h + +if [ (command -v kmutil) = /usr/bin/kmutil ] + command kmutil --generate-completion-script=fish | source +end diff --git a/share/completions/shortcuts.fish b/share/completions/shortcuts.fish index b46781497..e1c4e8d34 100644 --- a/share/completions/shortcuts.fish +++ b/share/completions/shortcuts.fish @@ -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