mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 19:03:38 +08:00
222a07e907
It seems Fedora compresses our whopping 340k of man pages. Fixes #3130. Inspired by @TieDyedDevil's work there.
8 lines
287 B
Fish
8 lines
287 B
Fish
function __fish_print_commands --description "Print a list of documented fish commands"
|
|
if test -d $__fish_datadir/man/man1/
|
|
for file in $__fish_datadir/man/man1/**.1*
|
|
string replace -r '.*/' '' -- $file | string replace -r '.1(.gz)?$' ''
|
|
end
|
|
end
|
|
end
|