aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/prompt_pwd.fish
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2015-12-17 15:17:28 +0100
committerGravatar Fabian Homborg <FHomborg@gmail.com>2015-12-17 15:25:13 +0100
commit8a6f26ff9bd260101b56b1de39adbf5992fb27a8 (patch)
treeb92730368c12beb6c5dbacdc7dc05a45e6c4a006 /share/functions/prompt_pwd.fish
parent71435121983cba54f15aff819929faedbae1ac8a (diff)
Document prompt_pwd
Fixes #253
Diffstat (limited to 'share/functions/prompt_pwd.fish')
-rw-r--r--share/functions/prompt_pwd.fish6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/functions/prompt_pwd.fish b/share/functions/prompt_pwd.fish
index c519c6cc..96e9b2f3 100644
--- a/share/functions/prompt_pwd.fish
+++ b/share/functions/prompt_pwd.fish
@@ -1,4 +1,10 @@
function prompt_pwd --description "Print the current working directory, shortened to fit the prompt"
+ set -q argv[1]; and switch $argv[1]
+ case -h --help
+ __fish_print_help prompt_pwd
+ return 0
+ end
+
# This allows overriding fish_prompt_pwd_dir_length from the outside (global or universal) without leaking it
set -q fish_prompt_pwd_dir_length; or set -l fish_prompt_pwd_dir_length 1