From 1e6079ca665a5a4fcc856f2a53d7634c8ef69a1c Mon Sep 17 00:00:00 2001 From: Demetri Obenour Date: Mon, 13 Jan 2014 21:44:42 -0500 Subject: [PATCH] Replaced spaces with tabs and deleted trailing whitespace --- lib/termsupport.zsh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 1c53f8f02..6f2b6a17e 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -37,22 +37,22 @@ function omz_termsupport_preexec { fi if [[ -o PROMPT_SUBST ]]; then - # We must escape $ and `, as both initiate command substitution and - # the former also initiates arithmetic and parameter expansion - CMD=${CMD:gs/$/\\$} - CMD=${CMD:gs/\`/\\\`} - LINE=${LINE:gs/$/\\$} - LINE=${LINE:gs/\`/\\\`} - fi + # We must escape $ and `, as both initiate command substitution and + # the former also initiates arithmetic and parameter expansion + CMD=${CMD:gs/$/\\$} + CMD=${CMD:gs/\`/\\\`} + LINE=${LINE:gs/$/\\$} + LINE=${LINE:gs/\`/\\\`} + fi - if [[ -o PROMPT_PERCENT ]]; then - # We must escape % so that it is not interpreted as starting an escape sequence - CMD=${CMD:gs/%/%%} - LINE=${LINE:gs/%/%%} - fi - title "$CMD" "%100>...>$LINE%<<" + if [[ -o PROMPT_PERCENT ]]; then + # We must escape % so that it is not interpreted as starting an escape sequence + CMD=${CMD:gs/%/%%} + LINE=${LINE:gs/%/%%} + fi + title "$CMD" "%100>...>$LINE%<<" } autoload -U add-zsh-hook -add-zsh-hook precmd omz_termsupport_precmd +add-zsh-hook precmd omz_termsupport_precmd add-zsh-hook preexec omz_termsupport_preexec