diff options
Diffstat (limited to 'share/completions/help.fish')
-rw-r--r-- | share/completions/help.fish | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/share/completions/help.fish b/share/completions/help.fish index d96745ab..f0c1fa0a 100644 --- a/share/completions/help.fish +++ b/share/completions/help.fish @@ -2,10 +2,8 @@ # Completions for the help command # -if test -f "$__fish_help_dir/commands.html" - for i in case (sed -n < $__fish_help_dir/commands.html -e "s/.*<h[12]><a class=\"anchor\" name=\"\([^\"]*\)\">.*/\1/p") - complete -c help -x -a $i --description "Help for the specified command" - end +if test -d "$__fish_datadir/man/man1/" + complete -c help -x -a '(__fish_print_commands)' --description "Help for this command" end complete -c help -x -a syntax --description 'Introduction to the fish syntax' |