From 87aedc8aa103074cf1d4fd91064d6676a6e44053 Mon Sep 17 00:00:00 2001 From: Guillaume DOTT Date: Fri, 21 Dec 2012 18:54:22 +0100 Subject: [PATCH] zsh: prevent precmd write error --- zsh/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/zshrc b/zsh/zshrc index 871e738..1e0cf25 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -130,7 +130,7 @@ export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 export RUBY_GC_MALLOC_LIMIT=79000000 precmd() { - print -Pn "\33]2;%(!.[ROOT] .)%m:%~ | ${COLUMNS}x${LINES} | %y\007" + [ -t 0 ] && print -Pn "\33]2;%(!.[ROOT] .)%m:%~ | ${COLUMNS}x${LINES} | %y\007" vcs_info } preexec() { }