mac终端中文乱码

vim ~/.zshrc

末尾添加:

export LC_ALL=en_US.UTF-8  
export LANG=en_US.UTF-8

配置生效

source ~/.zshrc

解决。

你可能感兴趣的:(macos)