技术栈

问题解决实录 | bash 中 tmux 颜色显示不全

DaphneOdera172024-10-02 17:45

点我进入博客

如下图,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 现在显示正常

上一篇:大数据-154 Apache Druid 架构与原理详解 基础架构、架构演进
下一篇:Shell脚本基础——实训项目任务
相关推荐
拓云者也
13 小时前
常用的生物信息学数据库以及处理工具
数据库·python·oracle·r语言·bash
超级大福宝
1 天前
PowerShell 实现类似 Bash 的补全行为
bash·powershell
dingdingfish
3 天前
GNU Parallel 学习 - 第1章:How to read this book
bash·shell·gnu·parallel
dingdingfish
3 天前
GNU Parallel 学习笔记 - 总目录
bash·gnu·parallel
鸠摩智首席音效师
4 天前
Linux Bash 中如何追加内容到文件 ?
linux·运维·bash
Laughtin
5 天前
macos命令行更换终端代理的方法
macos·bash·mac
zmjjdank1ng
6 天前
理解bash和shell
linux·运维·开发语言·bash
Bdygsl
7 天前
Linux小程序(2)—— bash模拟实现
linux·bash
weixin_46244623
8 天前
一键安装单节点 Zookeeper 3.8.5(附完整 Bash 脚本)
zookeeper·debian·bash
鸠摩智首席音效师
10 天前
如何创建带参数的 Bash 别名 ?
linux·bash
热门推荐
01GitHub 镜像站点02Clawdbot 中文汉化版 接入微信、飞书03Claude Code Skills 实用使用手册04OpenCode 入门教程:介绍 · 安装 · 配置第三方 API (如 Claude)05Claude Code + GLM4.7 避坑指南:解决 Unable to connect to Anthropic services06UV安装并设置国内源07OpenClaw部署与配置教程:在Mac mini上接入国产大模型与飞书08在Trae中使用Pencil MCP09Linux下V2Ray安装配置指南102025 年大语言模型发展回顾:关键突破、意外转折与 2026 年展望