tty中文乱码 在.bashrc 或 .zshrc 加一句 if test "$(echo $TTY | grep tty)" != ""; then export LANG=C ;fi 当bash在tty中运行时设置为英文