Closed QiMingZhenFan closed 4 months ago
Hello @QiMingZhenFan 👋
You need to either
tmux-256color
doesn't work for you, as Oh my tmux! detects it and decides to use itset -g default-terminal xterm-256color #!important
in your .local
customization file@gpakosz Thanks for your reply!
I happened to read your earlier reply in other issue. I tried this command set -g default-terminal xterm-256color #!important
, it worked! But without #!important
, this command still makes no changes to ${TERM}, why is this?
This is because the .local
file is used for 2
purposes
tmux_conf_...
variablesWhen the top level .conf
file is sourced, it then sources the .local
file to know the values of the tmux_conf_...
variables, then proceeds with customizing tmux: in this case, it detects that tmux-256color
is available and decides to use it. It also updates some bindings. Finally, it scans the .local
file again for set
, bind
and unbind
directives marked with #!important
(inspired by CSS), and applies these in a last pass.
Oh, I think I understand. That's cool! Thank you very much for your detailed and kindly explanation! :D
Thanks for your work!
I am using
zsh
&tmux
in Ubuntu 18.04. Ouside tmux, the TERM isxterm-256color
. However, inside tmux TERM istmux-256color
,eventhough I setset -g default-terminal "xterm-256color"
in ~/.tmux.conf.local.I restart tmux by
tmux kill-server
, but nothing changes. BTW,set -g default-terminal "screen-256color"
doesn't work yet.Is there something wrong with my usage? I want to change ${TERM} to
screen-256color
orxterm-256color
, because glog does not support outputing colored words intmux-256color
.