aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/pushd.fish
diff options
context:
space:
mode:
Diffstat (limited to 'share/functions/pushd.fish')
-rw-r--r--share/functions/pushd.fish8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/functions/pushd.fish b/share/functions/pushd.fish
index 2f12c6f3..405fde36 100644
--- a/share/functions/pushd.fish
+++ b/share/functions/pushd.fish
@@ -1,6 +1,14 @@
function pushd -d (N_ "Push directory to stack")
+ if count $argv >/dev/null
+ switch $argv[1]
+ case -h --h --he --hel --help
+ __fish_print_help pushd
+ return 0
+ end
+ end
+
# Comment to avoid set completions
set -g dirstack (command pwd) $dirstack
cd $argv[1]