我在我的zsh主题中使用了`♪`字符作为提示符。但在tmux中,我的提示符表现得很奇怪,显示出额外的空格,就像这样:
我最近发现,我可以通过
我的zsh主题:
♪ ~ I can type from here
♪ ~ Instead of here like in zsh, and sometimes when I do stuff like cd
♪ ~ cd ~
♪ ~ cdcd /
♪ ~ ^^These 2 chars just show up but are not actually part of command and not delete-able
我最近发现,我可以通过
set-window-option -g utf8 on
将tmux编码设置为utf8。这样做后,空格问题消失了,但是♪
字符变成了_
。我该如何在tmux
中恢复我的♪
?我的zsh主题:
PROMPT='%{$fg_bold[cyan]%} ♪ %{$fg[blue]%}%c%{$fg_bold[blue]%}$(git_prompt_info)$(git_remote_status)%{$fg_bold[blue]%} % %{$reset_color%}'
set-window-option
命令正常工作,出现了“not found cmd”的错误。请您提供详细的复现步骤。 - user.dz