简体   繁体   中英

Special Characters on zsh prompt using oh-my-zsh

I've just started using zsh as my shell, coming from bash. I am on a RedHat Linux Workstation build 6.4. I have all the relevent locales installed but when I move to a zsh prompt and pick any of the themes I have a PS1 that looks like this

ââ[name@host] - [~/tars] - [2013-11-05 09:50:26]
ââ[0] 

I'm not sure what is causing these special characters. Another example:

name@host ~/tars » echo $PS1                                                                                                                                                                                                    1 âµ
%{$fg[$NCOLOR]%}%n%{$fg[green]%}@%m%{$reset_color%} %~ \
$(git_prompt_info)\
%{$fg[red]%}%(!.#.»)%{$reset_color%} 

Is there something I'm missing that I should have installed?

根据您使用的提示主题,您需要一种支持这些字符的字体,或者需要为终端安装其他字体,例如Powerline字体。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM