TIL: enable 256 color support in Tmux
2022-05-09 00:00:00 +0000 UTCOn my Debian 10 dev machine, tmux
defaults to black and white when displaying the terminal. To enable 256 colors while working in the terminal, I added this line to my ~/.tmux.conf
:
set -g default-terminal "tmux-256color"
This sets the terminal to the ncurses tmux-256color
terminfo value, which is superior for tmux use since other recommended values like screen-256color
do not support all tmux features: most notably italics.