From 0cd6a7e4b18f17f5388c145b5fba95d35e9a6e47 Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Wed, 18 Jul 2018 00:26:25 +0200 Subject: [PATCH] Use `locale` to set default values for LC_ALL and LANG (fix macOS). --- home/dotfiles/zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/dotfiles/zshrc b/home/dotfiles/zshrc index bbe2ef3..a60910e 100644 --- a/home/dotfiles/zshrc +++ b/home/dotfiles/zshrc @@ -55,6 +55,12 @@ if [ -d "$HOME/Library/Python/2.7" ]; then PATH="$HOME/Library/Python/2.7/bin:$PATH" export PATH fi +if [ -z "$LC_ALL" ]; then + source <(locale | grep '^LC_ALL=') +fi +if [ -z "$LANG" ]; then + source <(locale | grep '^LANG=') +fi section_end # Powerline