mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-23 10:51:14 -03:00
14 lines
754 B
Fish
14 lines
754 B
Fish
function __fish_print_commands --description "Print a list of documented fish commands"
|
|
if set -q __fish_data_dir[1] && 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-(?:changelog|completions|doc|tutorial|faq|for-bash-users|interactive|language|releasenotes|terminal-compatibility)$'
|
|
end
|
|
end
|
|
status list-files man/man1/ 2>/dev/null |
|
|
string replace -r '.*/' '' -- $file |
|
|
string replace -r '.1(.gz)?$' '' |
|
|
string match -rv '^fish-(?:changelog|completions|doc|tutorial|faq|for-bash-users|interactive|language|releasenotes)$'
|
|
end
|