Replaced spaces with tabs and deleted trailing whitespace

This commit is contained in:
Demetri Obenour 2014-01-13 21:44:42 -05:00
commit 1e6079ca66

View file

@ -37,22 +37,22 @@ function omz_termsupport_preexec {
fi fi
if [[ -o PROMPT_SUBST ]]; then if [[ -o PROMPT_SUBST ]]; then
# We must escape $ and `, as both initiate command substitution and # We must escape $ and `, as both initiate command substitution and
# the former also initiates arithmetic and parameter expansion # the former also initiates arithmetic and parameter expansion
CMD=${CMD:gs/$/\\$} CMD=${CMD:gs/$/\\$}
CMD=${CMD:gs/\`/\\\`} CMD=${CMD:gs/\`/\\\`}
LINE=${LINE:gs/$/\\$} LINE=${LINE:gs/$/\\$}
LINE=${LINE:gs/\`/\\\`} LINE=${LINE:gs/\`/\\\`}
fi fi
if [[ -o PROMPT_PERCENT ]]; then if [[ -o PROMPT_PERCENT ]]; then
# We must escape % so that it is not interpreted as starting an escape sequence # We must escape % so that it is not interpreted as starting an escape sequence
CMD=${CMD:gs/%/%%} CMD=${CMD:gs/%/%%}
LINE=${LINE:gs/%/%%} LINE=${LINE:gs/%/%%}
fi fi
title "$CMD" "%100>...>$LINE%<<" title "$CMD" "%100>...>$LINE%<<"
} }
autoload -U add-zsh-hook 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 add-zsh-hook preexec omz_termsupport_preexec