From 59533a151c176725696b6d873dc1fb1ce6c9a268 Mon Sep 17 00:00:00 2001 From: Dan Claudiu Pop Date: Mon, 6 Jan 2014 16:44:30 +0200 Subject: [PATCH] force tmux to use 256 colors by adding the -2 flag --- modules/tmux/init.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/tmux/init.zsh b/modules/tmux/init.zsh index a59b259a..e5bbc266 100644 --- a/modules/tmux/init.zsh +++ b/modules/tmux/init.zsh @@ -30,7 +30,7 @@ if [[ -z "$TMUX" ]] && ( \ tmux set-option -g destroy-unattached off &> /dev/null # Create a new session. - tmux new-session -d -s "$tmux_session" + tmux -2 new-session -d -s "$tmux_session" # Disable the destruction of the new, unattached session. tmux set-option -t "$tmux_session" destroy-unattached off &> /dev/null @@ -40,7 +40,7 @@ if [[ -z "$TMUX" ]] && ( \ tmux set-option -g destroy-unattached on &> /dev/null fi - exec tmux new-session -t "$tmux_session" + exec tmux -2 new-session -t "$tmux_session" fi #