MENU

ubuntu20.04提示"git_prompt_info:20: character not in range"

December 5, 2021 • linux相关

问题

每执行一条命令都会显示如下提示:

git_prompt_info:20: character not in range

解决

编辑 ~/.zshrc 在顶部添加两行配置:

$> vim ~/.zshrc
# 在顶部添加以下2行设置保存
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
https://github.com/caiogondim/bullet-train.zsh/issues/207