[zshrc] Fix bug with running command containing '%'

This commit is contained in:
lhark 2018-02-26 03:16:54 -05:00
parent f377c914fc
commit 28bad78db0

4
zshrc
View file

@ -91,13 +91,13 @@ alias zbarcam='LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so zbarcam'
case $TERM in
xterm*)
preexec () {
print -Pn "\e]0;xterm - $1 - ${HOST} - ${PWD}\a"
print -n "\e]0;xterm - $1 - ${HOST} - ${PWD}\a"
}
;;
# Fix broken ssh with st
st*)
preexec () {
print -Pn "\e]0;st - $1 - ${HOST} - ${PWD}\a"
print -n "\e]0;st - $1 - ${HOST} - ${PWD}\a"
}
alias ssh='TERM=xterm ssh -A'
;;