1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-28 05:00:59 +01:00

%P at start of TCP function system prompt causes %-style prompt subst

This commit is contained in:
Peter Stephenson 2014-07-30 12:26:03 +01:00
parent d3d0910293
commit 15db636380
3 changed files with 14 additions and 3 deletions

View file

@ -666,6 +666,10 @@ expression `tt(%c)' expands to 1 if the session being read is the current
session, else 0; this is most useful in ternary expressions such as
`tt(%LPAR()c.-.PLUS()RPAR())' which outputs `tt(PLUS())' if the session is
the current one, else `tt(-)'.
If the prompt starts with tt(%P), this is stripped and the complete
result of the previous stage is passed through standard prompt tt(%)-style
formatting before being output.
)
vindex(TCP_READ_DEBUG)
item(tt(TCP_READ_DEBUG))(