changeset 268:feab84a8efdb

Merge. Also more workaround for Solaris tmux.
author Edho Arief <edho@myconan.net>
date Thu, 24 Nov 2011 13:52:07 +0700
parents 20ff9a9d11f0 (diff) e35a36bb832e (current diff)
children cd48b7a5cddd
files rc/bash
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rc/bash	Thu Nov 24 13:03:45 2011 +0700
+++ b/rc/bash	Thu Nov 24 13:52:07 2011 +0700
@@ -55,7 +55,15 @@
     done
     alias ping="ping -s"
     alias ping6="ping -A inet6"
-    [ -f "/usr/share/lib/terminfo/?/${TERM}" ] || export TERM=dtterm
+    # Hello tmux. Perhaps one day we'll have title with dtterm.
+    # But for now we work this around by prepending tmux call with xterm-256color
+    # which hopefully exists. Otherwise we have to live with no title.
+    if [ -f /usr/share/lib/terminfo/x/xterm-256color ]; then
+      alias tmux="TERM=xterm-256color tmux"
+    else
+      echo "No xterm-256color, using dtterm. Tmux title won't work."
+    fi
+    [ -f /usr/share/lib/terminfo/?/"${TERM}" ] || export TERM=dtterm
   ;;
   OpenBSD)
     PATH="${PATH}:/usr/X11R6/bin"