# HG changeset patch # User Edho Arief # Date 1322117527 -25200 # Node ID feab84a8efdbf850ce9db7e1b5fc211b303af1dc # Parent 20ff9a9d11f059e589c4a77cfc1228469ed0cfb9# Parent e35a36bb832e9243bd7f817cb0adc5fd5fb5e6f0 Merge. Also more workaround for Solaris tmux. diff -r e35a36bb832e -r feab84a8efdb rc/bash --- 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"