aboutsummaryrefslogtreecommitdiff
path: root/dot_config/environment.d/03_locale.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/environment.d/03_locale.tmpl')
-rw-r--r--dot_config/environment.d/03_locale.tmpl10
1 files changed, 10 insertions, 0 deletions
diff --git a/dot_config/environment.d/03_locale.tmpl b/dot_config/environment.d/03_locale.tmpl
new file mode 100644
index 0000000..7d73fb3
--- /dev/null
+++ b/dot_config/environment.d/03_locale.tmpl
@@ -0,0 +1,10 @@
+if ! export LANG=$(locale -a | grep -E -i "{{ .locale_base }}\.UTF-?8"); then
+ if ! export LANG=$(locale -a | grep -E -i "C.UTF-?8"); then
+ export LANG=C
+ fi
+fi
+
+export LC_TIME="en_GB.UTF-8"
+export LC_COLLATE=C # force strict lexicographic sorting
+
+# vim: set ft=sh: