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
J. Fernando Sánchez 9 years ago
parent 2b723ac941
commit bc8b9f26d7

@ -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

Loading…
Cancel
Save