问题解决实录 | bash 中 tmux 颜色显示不全

点我进入博客

如下图,tmux 中颜色显示不全:

shell 复制代码
echo $TERM

输出的是 screen

但在 bash 里面输出的是 xterm-256 color

在 bash 里面输入:

shell 复制代码
touch  ~/.tmux.conf
vim ~/.tmux.conf 
set -g default-terminal "xterm-256color"

使之生效

shell 复制代码
source  ~/.tmux.conf

再打开 tmux 现在显示正常

相关推荐
xuchaoxin137514 小时前
bash@bash帮助命令help@bash命令可用选项设置@bash -c@set命令@set --
bash
ol木子李lo1 天前
Linux 命令备忘录
linux·运维·服务器·windows·编辑器·ssh·bash
dingdingfish2 天前
Bash学习 - 第10章:Installing Bash
bash·make·shell·install·configure·5.3
dingdingfish3 天前
Bash学习 - 第8章:Command Line Editing,第3节:Readline Init File
bash·init·bind·readline
dingdingfish4 天前
Bash学习 - 第8章:Command Line Editing,第6-8节:Programmable Completion
bash·shell·completion·complete·compgen·compopt
dingdingfish4 天前
Bash学习 - 第8章:Command Line Editing,第4-5节:Bindable Readline Commands
bash·emacs·vi·bind·readline
香芋Yu5 天前
【从零构建AI Code终端系统】02 -- Bash 工具:一切能力的基础
开发语言·bash·agent·claude
dingdingfish5 天前
Bash学习 - 第7章:Job Control
bash·shell·wait·job
dingdingfish5 天前
Bash学习 - 第8章:Command Line Editing,第1-2节:Intro & Readline Interaction
bash·shell·readline
dingdingfish6 天前
Bash学习 - 第6章:Bash Features,第11节:Bash and POSIX
bash·posix