[ADD][TMUX] Enable 24-bit true-color

I need the correct TERM value, as well as the correct terminal overrides
so that both color and italics work correctly.
This commit is contained in:
Bruno BELANYI 2020-10-28 14:16:32 +01:00
parent 2d04aa780a
commit 05cb3c1c64
1 changed files with 7 additions and 0 deletions

View File

@ -5,6 +5,13 @@ set -g default-command "${SHELL}"
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
# Use correct TERM for termcap info
set -g default-terminal "tmux-256color"
# Use 24bit true color
set -as terminal-overrides ',xterm*:Tc:sitm=\E[3m'
# Compatibility settings
set-option -ga terminal-overrides ",tmux-256color-italic:Tc,xterm-256color-italic:Tc"
# Change where plugins are downloaded
set-environment -g TMUX_PLUGIN_MANAGER_PATH '/home/ambroisie/.config/tmux/plugins/'