From 3279661e3a279f144c4f4c36d5525d5e64a7b1b8 Mon Sep 17 00:00:00 2001 From: Jason Nader Date: Sun, 23 Feb 2020 07:33:07 +0900 Subject: [PATCH] whatis: add option completions [skip-ci] --- share/completions/whatis.fish | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/share/completions/whatis.fish b/share/completions/whatis.fish index eda161e3c..423e9b8e2 100644 --- a/share/completions/whatis.fish +++ b/share/completions/whatis.fish @@ -1,2 +1,14 @@ - complete -xc whatis -a "(__fish_complete_man)" + +complete -c whatis -s d -l debug -d "Debug" +complete -c whatis -s v -l verbose -d "Verbose" +complete -c whatis -s r -l regex -d "Interpret each keyword as a regex" +complete -c whatis -s w -l wildcard -d "Allow wildcards" +complete -c whatis -s l -l long -d "Do not trim output to terminal width" +complete -rc whatis -s C -l config-file -d "Configuration file" +complete -xc whatis -s L -l locale -a "(command -sq locale; and locale -a)" -d "Set locale" +complete -xc whatis -s m -l systems -d "Set system" +complete -xc whatis -s M -l manpath -a "(__fish_complete_directories (commandline -ct))" -d "Manpath" +complete -xc whatis -s s -l sections -l section -d "Search only these sections (colon-separated)" +complete -c whatis -s '?' -l help -l usage -d "Display help and exit" +complete -c whatis -s V -l version -d "Print program version"