Merge pull request #23 from sindresorhus/fix-printp

Fix problem with `print -Pn` and awk
This commit is contained in:
Sindre Sorhus
2013-10-01 07:54:41 -07:00

View File

@@ -38,7 +38,7 @@ prompt_pure_preexec() {
cmd_timestamp=$(date +%s) cmd_timestamp=$(date +%s)
# 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
print -Pn "\e]0;$PWD:t: $2\a" printf "\e]0;$PWD:t: $2\a"
} }
prompt_pure_precmd() { prompt_pure_precmd() {