aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/dirh.fish
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-11-18 02:24:38 +1000
committerGravatar axel <axel@liljencrantz.se>2006-11-18 02:24:38 +1000
commit1b71f91a014996d60886885c6fee091e8013d988 (patch)
treec01b41cc476bd2143677cb053b8cdef5f5ccfd78 /share/functions/dirh.fish
parentb30886228c546f99f974b64101f6ca164cea25e4 (diff)
Update documentation display code to run roff on the client system instead of pregenerating documentation and compiling it into program binaries
darcs-hash:20061117162438-ac50b-5c4c7f0bd8bf53a16e16ecfead9569e642b7160f.gz
Diffstat (limited to 'share/functions/dirh.fish')
-rw-r--r--share/functions/dirh.fish9
1 files changed, 9 insertions, 0 deletions
diff --git a/share/functions/dirh.fish b/share/functions/dirh.fish
index ca324b8b..b30a44e9 100644
--- a/share/functions/dirh.fish
+++ b/share/functions/dirh.fish
@@ -1,5 +1,14 @@
function dirh -d (N_ "Print the current directory history (the back- and fwd- lists)")
+
+ if count $argv >/dev/null
+ switch $argv[1]
+ case -h --h --he --hel --help
+ __fish_print_help dirh
+ return 0
+ end
+ end
+
# Avoid set comment
set -l current (command pwd)
set -l separator " "