태그 보관물: tmux

tmux

tmux에서 UTF-8 문자가 올바르게 표시되지 않음 추가 공간을

테마에 문자를 사용 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%}'


답변

u플래그로 tmux를 시작하면 이 문제가 해결됩니다.

tmux -u

내 zshrc에서 tmux의 별칭을 만들었습니다.

alias tmux='tmux -u'

답변