summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2013-11-18 14:54:26 -0500
committerJune McEnroe <programble@gmail.com>2013-11-18 14:54:26 -0500
commit1c856bd257b79e1f5fde1ad19c72a92fce79863f (patch)
treebfb2038096e194760891ff3315fa3797c59a0454
parentRemove useless syntastic option (diff)
downloadsrc-1c856bd257b79e1f5fde1ad19c72a92fce79863f.tar.gz
src-1c856bd257b79e1f5fde1ad19c72a92fce79863f.zip
Only set title in xterm
-rw-r--r--.zsh/title.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.zsh/title.zsh b/.zsh/title.zsh
index 0307b57c..7f4d1bac 100644
--- a/.zsh/title.zsh
+++ b/.zsh/title.zsh
@@ -1,5 +1,5 @@
 function _title {
-  print -Pn "\033]0;$@\a"
+  [[ "$TERM" =~ "xterm" ]] && print -Pn "\033]0;$@\a"
 }
 
 function title {