diff options
author | axel <axel@liljencrantz.se> | 2006-05-29 23:32:39 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-05-29 23:32:39 +1000 |
commit | 29cd62ab6e05eb5de871b36eb2a0d3277507f255 (patch) | |
tree | c12b85df80ac47f97be0577dd10e1679a2d00e82 /share/functions/help.fish | |
parent | 4c7e06e752b45344246bb912e80052b2c2743394 (diff) |
Check documentation for listing of external commands instead of relying on out of date static lists in various places
darcs-hash:20060529133239-ac50b-48392cfa1e5817ed8df452f0632658af7fe47a28.gz
Diffstat (limited to 'share/functions/help.fish')
-rw-r--r-- | share/functions/help.fish | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/share/functions/help.fish b/share/functions/help.fish index 5707f4f2..629e241b 100644 --- a/share/functions/help.fish +++ b/share/functions/help.fish @@ -74,7 +74,12 @@ function help -d (N_ "Show help for the fish shell") set fish_help_page "index.html\#expand" case (builtin -n) set fish_help_page "builtins.html\#$fish_help_item" - case contains count dirh dirs help mimedb nextd open popd prevd pushd set_color tokenize psub umask type vared + + # This command substitution should locate all commands with + # documentation. It's a bit of a hack, since it relies on the + # Doxygen markup format to never change... + + case (sed -n < /usr/share/doc/fish-1.21.7/commands.html -e "s/.*<h2><a class=\"anchor\" name=\"\([^\"]*\)\">.*/\1/p") set fish_help_page "commands.html\#$fish_help_item" case $help_topics set fish_help_page "index.html\#$fish_help_item" |