about summary refs log tree commit diff
path: root/Doc/Zsh/prompt.yo
diff options
context:
space:
mode:
authorManuel Presnitz <mpy@gmx.net>2013-07-28 14:09:56 +0200
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2013-07-28 18:37:00 +0100
commit5b85ac9011bb5443fc019ad00907c0a16597b21a (patch)
treebd475539ffd10eb06c897e7c79ea12dd915a23f6 /Doc/Zsh/prompt.yo
parentc5d9abc6c8f818a3823c70696e412c4496f6a5be (diff)
downloadzsh-5b85ac9011bb5443fc019ad00907c0a16597b21a.tar.gz
zsh-5b85ac9011bb5443fc019ad00907c0a16597b21a.tar.xz
zsh-5b85ac9011bb5443fc019ad00907c0a16597b21a.zip
31592: improve documentary for handling of named directories.
Minor changes of phrasing.
Diffstat (limited to 'Doc/Zsh/prompt.yo')
-rw-r--r--Doc/Zsh/prompt.yo9
1 files changed, 6 insertions, 3 deletions
diff --git a/Doc/Zsh/prompt.yo b/Doc/Zsh/prompt.yo
index 8d7979546..eab15d29d 100644
--- a/Doc/Zsh/prompt.yo
+++ b/Doc/Zsh/prompt.yo
@@ -100,10 +100,13 @@ directory to show; zero means the whole path.  A negative integer
 specifies leading components, i.e. tt(%-1d) specifies the first component.
 )
 item(tt(%~))(
-As tt(%d) and tt(%/), but if the current working directory has a named
+As tt(%d) and tt(%/), but if the current working directory starts with
+tt($HOME), that part is replaced by a `tt(~)'. Furthermore, if it has a named
 directory as its prefix, that part is replaced by a `tt(~)' followed by
-the name of the directory.  If it starts with tt($HOME), that part is
-replaced by a `tt(~)'.
+the name of the directory, but only if the result is shorter than
+the full path; 
+ifzman(see em(Dynamic) and em(Static named directories) in zmanref(zshexpn))\
+ifnzman(noderef(Filename Expansion)).
 )
 xitem(tt(%h))
 item(tt(%!))(