mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Replaced spaces with tabs and deleted trailing whitespace
This commit is contained in:
parent
a47bfac033
commit
1e6079ca66
1 changed files with 14 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue