From 64ee88e2774e4b5aa1586857387d57a85c4c1669 Mon Sep 17 00:00:00 2001 From: nirenjan Date: Fri, 27 Feb 2015 10:43:48 -0800 Subject: [PATCH] Revert to using 256color mode It turns out that when tmux was launched with the TERM set to xterm, it was causing tmux colors to go out of whack. This imports the original setting from my previous environment which sets the tmux alias to launch with the TERM set to screen-256color-bce --- bash/bashrc.aliases | 4 ++-- tmux.conf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bash/bashrc.aliases b/bash/bashrc.aliases index b3a0af6..020aa62 100644 --- a/bash/bashrc.aliases +++ b/bash/bashrc.aliases @@ -7,8 +7,8 @@ alias gf='git fetch' # Tmux aliases # Use this to launch in 16-color mode -alias tmux='TERM=xterm-16color tmux -2 -u' +alias tmux='TERM=screen-256color-bce tmux -2 -u' # Attach to an existing tmux session -alias work='TERM=xterm-16color tmux -2 -u attach -d' +alias work='TERM=screen-256color-bce tmux -2 -u attach -d' # Trigger tmux to reopen the socket if it cannot attach alias kick='pkill -USR1 -u $USER tmux' diff --git a/tmux.conf b/tmux.conf index f9261c9..5fefe12 100644 --- a/tmux.conf +++ b/tmux.conf @@ -4,7 +4,7 @@ set-option -g prefix C-s bind-key C-q send-prefix # Use 16 color mode -set-option -g default-terminal "xterm-16color" +set-option -g default-terminal "screen-256color-bce" # Set the Esc/Alt disambiguation timeout to 50ms # The default is 500ms, which makes vim kind of painful