diff options
author | Peter Stephenson <pws@zsh.org> | 2014-07-30 12:26:03 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2014-07-30 12:26:03 +0100 |
commit | 15db636380a6010c8486b3a7dc27188c96beff9c (patch) | |
tree | 71e626f711bd0e00352b60dd329e911474dabf96 /Functions/TCP | |
parent | d3d091029367d7bf3c413330a2e93d720614d211 (diff) | |
download | zsh-15db636380a6010c8486b3a7dc27188c96beff9c.tar.gz zsh-15db636380a6010c8486b3a7dc27188c96beff9c.tar.xz zsh-15db636380a6010c8486b3a7dc27188c96beff9c.zip |
%P at start of TCP function system prompt causes %-style prompt subst
Diffstat (limited to 'Functions/TCP')
-rw-r--r-- | Functions/TCP/tcp_output | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Functions/TCP/tcp_output b/Functions/TCP/tcp_output index 781c46c33..22e818e17 100644 --- a/Functions/TCP/tcp_output +++ b/Functions/TCP/tcp_output @@ -35,6 +35,9 @@ if [[ -n $tprompt ]]; then cursess="c:0" fi zformat -f REPLY $tprompt "s:$sess" "f:$read_fd" $cursess + if [[ $REPLY = %P* ]]; then + REPLY=${(%)${REPLY##%P}} + fi # We will pass this back up. REPLY="$REPLY$*" else |