首先安装中文语言包:
sudo apt install -y language-pack-zh-hans
接下来在 ~/.zshrc
或 ~/.bashrc
中添加如下内容:
export \
LANGUAGE="zh_CN.UTF-8" \
LC_ALL="zh_CN.UTF-8" \
LC_TIME="zh_CN.UTF-8" \
LC_CTYPE="zh_CN.UTF-8" \
LC_MONETARY="zh_CN.UTF-8" \
LC_COLLATE="zh_CN.UTF-8" \
LC_ADDRESS="zh_CN.UTF-8" \
LC_TELEPHONE="zh_CN.UTF-8" \
LC_MESSAGES="zh_CN.UTF-8" \
LC_NAME="zh_CN.UTF-8" \
LC_MEASUREMENT="zh_CN.UTF-8" \
LC_IDENTIFICATION="zh_CN.UTF-8" \
LC_NUMERIC="zh_CN.UTF-8" \
LC_PAPER="zh_CN.UTF-8" \
LANG="zh_CN.UTF-8"
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。