Use `locale` to set default values for LC_ALL and LANG (fix macOS).

master
Icedream 2018-07-18 00:26:25 +02:00
parent f65628a828
commit 0cd6a7e4b1
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,12 @@ if [ -d "$HOME/Library/Python/2.7" ]; then
PATH="$HOME/Library/Python/2.7/bin:$PATH" PATH="$HOME/Library/Python/2.7/bin:$PATH"
export PATH export PATH
fi fi
if [ -z "$LC_ALL" ]; then
source <(locale | grep '^LC_ALL=')
fi
if [ -z "$LANG" ]; then
source <(locale | grep '^LANG=')
fi
section_end section_end
# Powerline # Powerline