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

相关推荐
dingdingfish8 小时前
Bash学习 - 第6章:Bash Features,第10节:The Restricted Shell
bash·shell·rbash·restrict
数形长夏11 小时前
命令行界面的神秘符号,是上一代程序复用的尝试
架构·bash·batch
dingdingfish1 天前
Bash学习 - 第6章:Bash Features,第7节:Arrays
bash·shell·array·index·associate
wsad05322 天前
Linux Shell脚本执行方式全解析:source、点号、路径、bash与exec的区别
linux·运维·bash·shell
叠叠乐2 天前
EasyTier 免费自建自用5$每个月的服务器
linux·运维·bash
白太岁2 天前
操作系统开发:(8) 任务/线程的创建、调度与管理(实现 tasks.h 与 tasks.c)
c语言·开发语言·bash
之歆3 天前
Bash 循环与函数、Linux 进程管理
linux·chrome·bash
dingdingfish3 天前
Bash学习 - 第6章:Bash Features,第3节:Interactive Shells
bash·shell·interactive
鸠摩智首席音效师8 天前
如何在Bash中捕获标准错误到一个变量 ?
bash
dingdingfish8 天前
Bash学习 - 第3章:Basic Shell Features,第5节:Shell Expansions
开发语言·学习·bash