Create and use a new termcap for Tmux >= 2.1

As result of default terminal settings changing as of version 2.1 of
Tmux some terminals, specially over SSH connections, won't detect the
TERM correctly, resulting in wrong colors displayed when using them
inside Tmux (for instance when running Vim).

The Tmux setting using a custom termcap and the shell settings described
in comments help to overcome those issues.
This commit is contained in:
Dionisio E Alonso 2019-03-14 17:23:24 -03:00
parent 5e9adde616
commit d9b8606f53
1 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,7 @@
# 256 color terminal ## Use ``export TERM=xterm-256color`` in ~/.shrc instead
# Generated by: $ infocmp screen-256color | sed 's/screen-256color/xterm-screen-256color/g' | tic -
set-option -g default-terminal xterm-screen-256color
# Load pretty colors
source-file ~/.config/tmux/zenburn2.theme