Disable prompt expansion for running command

This commit is contained in:
Mathias Fredriksson
2015-06-16 14:54:30 +03:00
parent a099059f15
commit 5f5b990e2b

View File

@@ -67,7 +67,7 @@ prompt_pure_preexec() {
[[ "$SSH_CONNECTION" != '' ]] && print -Pn "(%m) " [[ "$SSH_CONNECTION" != '' ]] && print -Pn "(%m) "
# shows the current dir and executed command in the title when a process is active # shows the current dir and executed command in the title when a process is active
# (use print -r to disable potential evaluation of escape characters in cmd) # (use print -r to disable potential evaluation of escape characters in cmd)
print -Pnr "$PWD:t: $2" print -nr "$PWD:t: $2"
print -Pn "\a" print -Pn "\a"
} }