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

相关推荐
cosX+sinY5 小时前
ubuntu 20.04 编译运行LeGo_LOAM 跑数据集 并且保存pcl文件
linux·ubuntu·机器人·bash
cosX+sinY5 小时前
ubuntu 20.04 编译和运行SC-LeGo-LOAM
linux·ubuntu·机器人·bash
雪域迷影1 天前
MacOS中配置完环境变量后执行source ~/.bash_profile后,只能在当前shell窗口中生效
macos·bash
鸠摩智首席音效师1 天前
SH 和 BASH 有什么不同 ?
bash
vortex52 天前
Bash中因数值比较引发的提权漏洞:数组注入与任意命令执行
linux·开发语言·安全·网络安全·渗透测试·bash
电星托马斯2 天前
Linux如何设置bash为默认shell
linux·运维·服务器·笔记·程序人生·bash·个人开发
Billy Qin2 天前
Shell四种配置文件的区别(~/.bashrc ~/.bash_profile ~/.zshrc ~/.profile)
开发语言·bash
nlog3n2 天前
Java策略模式详解
java·bash·策略模式
大乔乔布斯4 天前
AttributeError: module ‘smtplib‘ has no attribute ‘SMTP_SSL‘ 解决方法
python·bash·ssl
阳光_你好5 天前
解决用git bash终端 tail -f 命令查看日志中文乱码问题
开发语言·git·bash