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

相关推荐
scx_link14 天前
通过git bash在本地创建分支,并推送到远程仓库中
开发语言·git·bash
江华森15 天前
高级 Bash 脚本编程指南 — 实战教程
开发语言·bash
承渊政道15 天前
【MySQL数据库学习】(MySQL表的内外连接)
数据库·学习·mysql·leetcode·bash·数据库开发·数据库系统
hyunbar15 天前
配置 Cloudflare Tunnel:把 Mac 上的 Web 服务变成安全域名
网络协议·https·bash
承渊政道16 天前
【MySQL数据库学习】(MySQL复合查询)
数据库·学习·mysql·bash·database·数据库开发·数据库架构
zh路西法17 天前
【tmux入门】终端分屏、SSH远程守护与一键启动脚本
linux·运维·ssh·bash
承渊政道18 天前
【MySQL数据库学习】(MySQL内置函数)
数据库·学习·mysql·ubuntu·bash·数据库开发·数据库系统
allway218 天前
How to Echo Multiline to a File in Bash [3 Methods]
开发语言·chrome·bash
Dontla18 天前
git bash打开Claude code报错:Claude Code on Windows requires git-bash.(别把git装其他位置,严格按照默认安装)找不到claude code
windows·git·bash
weixin_4624462318 天前
手把手教你用 Bash 脚本自动更新 /etc/hosts —— 自动绑定网卡 IP 与节点名
开发语言·tcp/ip·bash