summaryrefslogtreecommitdiff
path: root/.config/login.d/01_locale.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/login.d/01_locale.sh')
-rw-r--r--.config/login.d/01_locale.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/.config/login.d/01_locale.sh b/.config/login.d/01_locale.sh
new file mode 100644
index 0000000..2e4f3c4
--- /dev/null
+++ b/.config/login.d/01_locale.sh
@@ -0,0 +1,3 @@
+if { [[ $LANG = C ]] || [[ -z $LANG ]]; } && grep '^en_US.UTF-8\s' /etc/locale.gen &>/dev/null; then
+ export LANG=en_US.UTF-8
+fi