[英]How do I get git status to display with proper symbols on fresh install of alpine OS on an oh-my-zsh prompt?
On a fresh install, the git status line is shows: [_master _]
instead of something like [±master ●●]
, showing underscores instead of the symbols.在全新安装中,git 状态行显示:
[_master _]
而不是[±master ●●]
之类的内容,显示下划线而不是符号。
This is on the alpine OS using the bureau theme with oh-my-zsh.这是在 alpine 操作系统上使用 bureau 主题和 oh-my-zsh。
OK, this was actually a problem with tmux.好的,这实际上是 tmux 的问题。 Adding:
添加:
CHARSET=UTF-8
LANG="C.UTF-8"
to /etc/profile
and reloading the shell fixed things.到
/etc/profile
并重新加载 shell 修复的东西。
Also possible to start tmux with the -u
option: tmux -u
.也可以使用
-u
选项启动 tmux: tmux -u
。 This also fixed the problem.这也解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.