aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/dirh.fish
diff options
context:
space:
mode:
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 " "