Merge pull request #106 from antono/fix-xterm-plugin

Install xterm title only for xterm
diff --git a/plugins/available/xterm.plugins.bash b/plugins/available/xterm.plugins.bash
index 94d4c33..3e4ac9e 100644
--- a/plugins/available/xterm.plugins.bash
+++ b/plugins/available/xterm.plugins.bash
@@ -3,6 +3,7 @@
     echo -ne "\e]0;$title\007"
 }
 
+
 precmd () {
     set_xterm_title "${USER}@${HOSTNAME} `dirs -0` $PROMPTCHAR"
 }
@@ -11,4 +12,6 @@
     set_xterm_title "$1 {`dirs -0`} (${USER}@${HOSTNAME})"
 }
 
-preexec_install
+case "$TERM" in
+    xterm*|rxvt*) preexec_install;;
+esac