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

相关推荐
蜀中廖化2 天前
bash:trtexec:command not found
开发语言·bash
我有火的意志2 天前
Liunx执行source /etc/profile 报错, -bash: HISTTIMEFORMAT: readonly variable
开发语言·bash·histtimeformat·readonly
Lynnxiaowen4 天前
今天继续昨天的正则表达式进行学习
linux·运维·学习·正则表达式·云计算·bash
抓饼先生5 天前
Linux control group笔记
linux·笔记·bash
kevin_cat5 天前
微信群机器人-备份文件发送通知
git·bash·企业微信
Lynnxiaowen5 天前
今天继续学习shell脚本
linux·运维·学习·云计算·bash
hmcjn(小何同学)5 天前
轻松Linux-9.进程间通信
linux·运维·服务器·c++·bash
青草地溪水旁6 天前
Git Bash 中 Git 命令的实用主义指南
git·bash
vortex57 天前
常见Bash脚本漏洞分析与防御
开发语言·bash
谢栋_8 天前
设计模式从入门到精通之(六)策略模式
设计模式·bash·策略模式