fish-shell/share/functions/__fish_print_commands.fish
2018-03-12 08:34:20 -05:00

8 lines
289 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)?$' ''
end
end
end