aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/help.fish
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-08-22 10:52:30 +1000
committerGravatar axel <axel@liljencrantz.se>2006-08-22 10:52:30 +1000
commit2ea00ce444d326d11ef64bff3c81636aff624855 (patch)
tree6c56038010f222ba9e04d5419482b40ab483dc01 /share/functions/help.fish
parentac13bdeaa7c4f3315c1875a794613c7c60c82f2f (diff)
help --help should be same as help help
darcs-hash:20060822005230-ac50b-b82c0665cae7427c09992f51e128e33cea44b41e.gz
Diffstat (limited to 'share/functions/help.fish')
-rw-r--r--share/functions/help.fish6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/functions/help.fish b/share/functions/help.fish
index 2d8fb509..02f8cce5 100644
--- a/share/functions/help.fish
+++ b/share/functions/help.fish
@@ -18,6 +18,12 @@ function help -d (N_ "Show help for the fish shell")
set h $h expand-variable expand-home expand-brace expand-wildcard
set -l help_topics $h expand-command-substitution expand-process
+ # 'help -h' should launch 'help help'
+ switch $argv[1]
+ case -h --h --he --hel --help
+ set argv help
+ end
+
#
# Find a suitable browser for viewing the help pages. This is needed
# by the help function defined below.