aboutsummaryrefslogtreecommitdiffstats
path: root/_zsh/30-prompt.zsh
diff options
context:
space:
mode:
Diffstat (limited to '_zsh/30-prompt.zsh')
-rw-r--r--_zsh/30-prompt.zsh5
1 files changed, 4 insertions, 1 deletions
diff --git a/_zsh/30-prompt.zsh b/_zsh/30-prompt.zsh
index bd821d1..a4b5323 100644
--- a/_zsh/30-prompt.zsh
+++ b/_zsh/30-prompt.zsh
@@ -5,7 +5,10 @@
#
-# gitpwd - print %~, limited to $NDIR segments, with inline git branch
+# gitpwd - format the current path with inline git branch for the
+# prompt; the current path is limited to $NDIR segments,
+# meanwhile long segments are shortened to be
+# '<prefix>…<suffix>'.
NDIRS=3
function gitpwd() {
local -a segs splitprefix