diff --git a/share/functions/help.fish b/share/functions/help.fish index 51debe4f3..cd83fb572 100644 --- a/share/functions/help.fish +++ b/share/functions/help.fish @@ -117,7 +117,10 @@ function help --description 'Show help for the fish shell' set fish_help_page "cmds/source.html" case globbing set fish_help_page "index.html#expand" - case (__fish_print_commands) + case (builtin -n) (__fish_print_commands) + # If the docs aren't installed, __fish_print_commands won't print anything + # Since we document all our builtins, check those at least. + # The alternative is to create this list at build time. set fish_help_page "cmds/$fish_help_item.html" case 'completion-*' set fish_help_page "completions.html#$fish_help_item"