mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 18:03:37 +08:00
10 lines
374 B
Fish
10 lines
374 B
Fish
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 match -rv '^fish-(?:completions|doc|tutorial|faq)$'
|
|
end
|
|
end
|
|
end
|