mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 22:21:15 -03:00
__fish_complete_man: cope with gzipped man pages
This commit is contained in:
@@ -69,8 +69,8 @@ function __fish_complete_man
|
||||
|
||||
# Fish commands are not given by apropos
|
||||
if not set -ql exclude_fish_commands
|
||||
set -l files $__fish_data_dir/man/man1/*.1
|
||||
string replace -r '.*/([^/]+)\.1$' '$1\t1: fish command' -- $files (status list-files man/man1/ 2>/dev/null)
|
||||
set -l files $__fish_data_dir/man/man1/*.1*
|
||||
string replace -r '.*/([^/]+)\.1(\.gz)?$' '$1\t1: fish command' -- $files (status list-files man/man1/ 2>/dev/null)
|
||||
end
|
||||
else
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user