问题解决实录 | 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 现在显示正常

相关推荐
归叶再无青13 天前
web服务安装部署、性能升级等(Apache、Nginx)
运维·前端·nginx·云原生·apache·bash
归叶再无青13 天前
企业级web服务(Tomcat开源web应用服务器)
运维·前端·开源·tomcat·bash
chao_78914 天前
构建start_app.sh,实现快速启动项目
python·bash·终端·前后端
笨笨D幸福14 天前
应用程序重定向技术(Shim)
bash·scoop·shim
xuchaoxin137515 天前
bash@bash帮助命令help@bash命令可用选项设置@bash -c@set命令@set --
bash
ol木子李lo15 天前
Linux 命令备忘录
linux·运维·服务器·windows·编辑器·ssh·bash
dingdingfish17 天前
Bash学习 - 第10章:Installing Bash
bash·make·shell·install·configure·5.3
dingdingfish17 天前
Bash学习 - 第8章:Command Line Editing,第3节:Readline Init File
bash·init·bind·readline
dingdingfish18 天前
Bash学习 - 第8章:Command Line Editing,第6-8节:Programmable Completion
bash·shell·completion·complete·compgen·compopt
dingdingfish19 天前
Bash学习 - 第8章:Command Line Editing,第4-5节:Bindable Readline Commands
bash·emacs·vi·bind·readline