Emacs 24bit colors on tmux

Setting up truecolor (24 bit color) in emacs in the terminal, under iTerm2 · GitHub (install-terminfo-xterm-24bit.bash @localhost, @remotehost)

How to display 24-bit color in Emacs on tmux(Others-Community)

locahost% TERM=xterm-24bits ssh remotehost
remotehost% tmux
remotehost% emacs -nw

.tmux.conf (@localhost, @remotehost)

set -g default-terminal "xterm-24bits"
set-option -ga terminal-overrides ",xterm-24bits:Tc"

.zshrc @localhost

tmux () {
  TERM=xterm-24bits command tmux
}

dircolors

TERM xterm-24bits