diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-07-12 17:02:40 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-07-12 17:02:40 +0000 |
commit | 1f6786ef7ae24ff858f52c6d4ac2bc23d529c0c1 (patch) | |
tree | 608d6471d477e8d4d9eafa62f521be50c3248f6e /Doc/Zsh/prompt.yo | |
parent | 7c670f1e6a0e154f0b1a2d4b6eed0e71c9404b56 (diff) | |
download | zsh-1f6786ef7ae24ff858f52c6d4ac2bc23d529c0c1.tar.gz zsh-1f6786ef7ae24ff858f52c6d4ac2bc23d529c0c1.tar.xz zsh-1f6786ef7ae24ff858f52c6d4ac2bc23d529c0c1.zip |
zsh-3.1.6-test-1 zsh-3.1.6-test-1
Diffstat (limited to 'Doc/Zsh/prompt.yo')
-rw-r--r-- | Doc/Zsh/prompt.yo | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/Doc/Zsh/prompt.yo b/Doc/Zsh/prompt.yo index 29f1f2c22..a7a220633 100644 --- a/Doc/Zsh/prompt.yo +++ b/Doc/Zsh/prompt.yo @@ -42,21 +42,14 @@ A `tt(RPAR())'. ) xitem(tt(%d)) item(tt(%/))( -Present working directory (tt($PWD)). +Present working directory (tt($PWD)). If an integer follows the `tt(%)', +it specifies a number of trailing components of tt($PWD) to show; zero +means the whole path. ) item(tt(%~))( -tt($PWD). -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(~)'. -) -xitem(tt(%c)) -xitem(tt(%.)) -item(tt(%C))( -Trailing component of tt($PWD). -An integer may follow the `tt(%)' to get more than one component. -Unless `tt(%C)' is used, tilde contraction is performed first. +As tt(%d) and tt(%/), but if tt($PWD) 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(~)'. ) xitem(tt(%h)) item(tt(%!))( @@ -98,7 +91,9 @@ tt($USERNAME). item(tt(%N))( The name of the script, sourced file, or shell function that zsh is currently executing, whichever was started most recently. If there is -none, this is equivalent to the parameter tt($0). +none, this is equivalent to the parameter tt($0). An integer may follow +the `tt(%)' to specify a number of trailing path components to show; zero +means the full path. ) item(tt(%i))( The line number currently being executed in the script, sourced file, or @@ -235,4 +230,14 @@ current directory, followed by a `tt(%)' or `tt(#)', followed by a space. Without the `tt(%<<)', those two characters would be included in the string to be truncated. ) +xitem(tt(%c)) +xitem(tt(%.)) +item(tt(%C))( +Trailing component of tt($PWD). +An integer may follow the `tt(%)' to get more than one component. +Unless `tt(%C)' is used, tilde contraction is performed first. These are +deprecated as tt(%c) and tt(%C) are equivalent to tt(%1~) and tt(%1/), +respectively, while explicit positive integers have the same effect as for +the latter two sequences. +) enditem() |