chiark / gitweb /
xterm-title: Don't do anything unless $TERM = xterm.
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Mon, 27 Jan 2003 10:53:32 +0000 (10:53 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Mon, 27 Jan 2003 10:53:32 +0000 (10:53 +0000)
xterm-title

index 1fcea56..2299cca 100755 (executable)
@@ -1,2 +1,4 @@
 #! /bin/sh
-printf '\033]0;'"$*"'\a'
+if [ "$TERM" = xterm ]; then
+    printf '\033]0;'"$*"'\a'
+fi