diff options
| author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2017-02-07 08:57:33 +0000 |
|---|---|---|
| committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2017-02-09 15:24:05 +0000 |
| commit | e007cd9f8853a69a2e313e65a1d04d4e05120243 (patch) | |
| tree | 5dd69a266d17712062c37d01c5743c82dc5efac4 /Misc | |
| parent | 40492: vcs_info: Escape '%' signs in payloads. (diff) | |
| download | zsh-e007cd9f8853a69a2e313e65a1d04d4e05120243.tar zsh-e007cd9f8853a69a2e313e65a1d04d4e05120243.tar.gz zsh-e007cd9f8853a69a2e313e65a1d04d4e05120243.tar.bz2 zsh-e007cd9f8853a69a2e313e65a1d04d4e05120243.tar.lz zsh-e007cd9f8853a69a2e313e65a1d04d4e05120243.tar.xz zsh-e007cd9f8853a69a2e313e65a1d04d4e05120243.tar.zst zsh-e007cd9f8853a69a2e313e65a1d04d4e05120243.zip | |
40510: vcs_info: Update the $psvar episode with '%'-unescaping. (Follow-up to 40492.)
Diffstat (limited to 'Misc')
| -rw-r--r-- | Misc/vcs_info-examples | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Misc/vcs_info-examples b/Misc/vcs_info-examples index 766eb82a4..58dd8cf98 100644 --- a/Misc/vcs_info-examples +++ b/Misc/vcs_info-examples @@ -31,7 +31,7 @@ precmd() { psvar=() vcs_info - [[ -n $vcs_info_msg_0_ ]] && psvar[1]="$vcs_info_msg_0_" + [[ -n $vcs_info_msg_0_ ]] && print -v 'psvar[1]' -Pr -- "$vcs_info_msg_0_" } # You can now use `%1v' to drop the $vcs_info_msg_0_ contents in your prompt; |
