__fish_print_help: Also add "-l"

mandoc refuses to open files without.

See #12037
This commit is contained in:
Fabian Boehm
2025-11-08 15:30:08 +01:00
parent 35f4eb8e9a
commit 828773b391

View File

@@ -26,7 +26,8 @@ function __fish_print_help --description "Print help for the specified fish func
return 2
end
set -l file (path filter -- $man1/$item.1 $man1/$item.1.gz)
command man $file[1]
# "-l" to read a local file, required for mandoc
command man -l $file[1]
end
__fish_data_with_directory man/man1 \
"$(string escape --style=regex $item.1)(?:\.gz)?" \