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 {
937e6417d3b657b980&follow=1'>Install slJune McEnroe 2017-07-25Add up, supJune McEnroe 2017-07-24Autopickup ringsJune McEnroe 2017-07-24Name dogJune McEnroe 2017-07-23Add nethackrcJune McEnroe 2017-07-23Remove useless setuid in briJune McEnroe Don't you think it would be better if the setuid bit only gave you permission to do it and didn't do it for you? 2017-07-23Clean up hnel a tiny bitJune McEnroe 2017-07-21Set window size in hnelJune McEnroe 2017-07-21Add hnelJune McEnroe 2017-07-19chmod 600 in dtchJune McEnroe