ฉันใช้♪ตัวละครในzshธีมของฉันเพื่อแจ้งให้ทราบ แต่ใน tmux พรอมต์ของฉันทำงานผิดปกติโดยแสดงช่องว่างเพิ่มเติมเช่นนี้
♪ ~ 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
ฉันเพิ่งพบว่าฉันสามารถตั้งค่าการเข้ารหัสเพื่อ tmux utf8 set-window-option -g utf8 onโดย การทำเช่นนั้นปัญหาพื้นที่ก็หายไป แต่ตัวละครที่เปลี่ยนไป♪ _ฉันจะ♪กลับเข้ามาได้tmuxอย่างไร?
ธีม zsh ของฉัน:
PROMPT='%{$fg_bold[cyan]%} ♪ %{$fg[blue]%}%c%{$fg_bold[blue]%}$(git_prompt_info)$(git_remote_status)%{$fg_bold[blue]%} % %{$reset_color%}'
ฉันใช้ tmux conf ที่นี่ (มันใช้ที่นี่ด้วย ) ดูเหมือนว่า tmux จะแปลงตัวละครทุกตัวที่ไม่ได้เป็น ASCII
—
Sourabh
_เมื่อฉันตั้งค่าตัวเลือกนั้น
set-window-optionสามารถทำงานให้ฉันnot found cmdได้ กรุณาสามารถเขียนขั้นตอนที่แน่นอนในการทำซ้ำ