mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-04-25 14:06:54 +08:00
fix error when locale not exists
This commit is contained in:
parent
63c3d8e6d1
commit
f15e0836e3
2
.zshrc2
2
.zshrc2
|
@ -1,6 +1,6 @@
|
||||||
# env for shell
|
# env for shell
|
||||||
export TERM="xterm-256color"
|
export TERM="xterm-256color"
|
||||||
if ( locale -a | grep -qxE "C.UTF-8|C.utf8" ); then
|
if (command -v locale >/dev/null) && ( locale -a | grep -qxE "C.UTF-8|C.utf8" ); then
|
||||||
export LC_ALL=C.UTF-8
|
export LC_ALL=C.UTF-8
|
||||||
export LANG=C.UTF-8
|
export LANG=C.UTF-8
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user