help.fish: fix help for the separate completion page

This commit is contained in:
Johannes Altmanninger
2020-05-16 11:19:45 +02:00
parent 8e18f683a7
commit f9447dc72f
3 changed files with 14 additions and 9 deletions

View File

@@ -1,7 +1,9 @@
function __fish_print_commands --description "Print a list of documented fish commands"
if test -d $__fish_data_dir/man/man1/
for file in $__fish_data_dir/man/man1/**.1*
string replace -r '.*/' '' -- $file | string replace -r '.1(.gz)?$' ''
string replace -r '.*/' '' -- $file |
string replace -r '.1(.gz)?$' '' |
string match -rv '^fish-(?:completions|doc|tutorial|faq)$'
end
end
end