2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-19 16:34:24 +00:00
fish-shell/share/functions/__fish_print_commands.fish

8 lines
287 B
Fish
Raw Normal View History

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