From bc8b9f26d7495500276eee8c7efa18e3ee28edc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Fri, 27 Mar 2015 05:53:38 +0100 Subject: [PATCH] Hard to track problem with tmux's config To make "tmux attach" create a session when there aren't any active yet, you need to call "new-session" in the config. My problem was that new-session was set before setting the terminal to 256 colors. Hence, when a session is created, it has TERM=screen by default. --- tmux.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tmux.conf b/tmux.conf index e26552c..9b3f1da 100644 --- a/tmux.conf +++ b/tmux.conf @@ -54,9 +54,6 @@ setw -g mode-mouse on set-option -g mouse-select-pane on set-option -g mouse-resize-pane on -# Start new-session as default -new-session - # resize only if actively looking setw -g aggressive-resize on @@ -98,3 +95,7 @@ bind m run "tmux-zoom.sh" # Fix for emacs and the like set -s escape-time 0 + +# Start new-session as default +new-session +