diff options
Diffstat (limited to 'share/functions/popd.fish')
-rw-r--r-- | share/functions/popd.fish | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/share/functions/popd.fish b/share/functions/popd.fish index cf2e8ff3..2878659f 100644 --- a/share/functions/popd.fish +++ b/share/functions/popd.fish @@ -1,5 +1,13 @@ function popd -d (N_ "Pop dir from stack") + if count $argv >/dev/null + switch $argv[1] + case -h --h --he --hel --help + __fish_print_help popd + return 0 + end + end + if test $dirstack[1] cd $dirstack[1] else |