Setting up tmux and kitty for true color support
I’ve been using kitty and tmux together for years and recently realized my setup for true colors was broken, thanks to neovim’s :checkhealth
command. After some searching and trial and error, the setup I ended up at was this:
- Remove any
export TERM
lines from.zshrc
,.bashrc
, etc. - Set these options in tmux:
set -g default-terminal "screen-256color"
set-option -sa terminal-overrides ",xterm-kitty:RGB"
- Kill tmux, close kitty, reopen and true color support should be enabled
Don't miss what's next. Subscribe to Marcus Buffett: