Tmux TrueColor (a.k.a. 24-bit color) Support
To enable TrueColor for Tmux, you must make sure that you have two things:
- Tmux version 2.2 or higher. You can find out your version by running
- You have a terminal that supports TrueColor (it may also be referenced by 24 bit color. To check if you do, run
curl -s https://raw.githubusercontent.com/JohnMorales/dotfiles/master/colors/24-bit-color.sh | bash
Now that you have that done, you can enable TrueColor.
echo $TERMin your terminal. It should get you something like this:
xterm-termite. Whatever you do get, remember it for later.
- To test it, enter Tmux, and run
tmux set-option -ga terminal-overrides ",xterm-termite:24-bit-color"
- Now, if TrueColor is set up correctly, you should see a smooth transition between the colors.
If all checks out, the only thing left to do is save it.
If you have not done so already, create a
.tmux.conf file in your home directory (~)
Put this in the file
set -g default-terminal "xterm-termite"
Of course, replace
xterm-termite with whatever output you got from