aboutsummaryrefslogtreecommitdiff
path: root/dot_config/sh/03_locale
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2023-12-27 17:53:18 -0500
committerRyan Kavanagh <rak@rak.ac>2023-12-27 17:53:18 -0500
commitde9f9234f1116d9f3f203e3d0aa426a3fd2f8d25 (patch)
tree063df66fc29a7614127cdb0313f3c133f75ebe42 /dot_config/sh/03_locale
parentMerge remote-tracking branch 'gh/master' (diff)
Order the sourced common shell files
Diffstat (limited to 'dot_config/sh/03_locale')
-rw-r--r--dot_config/sh/03_locale10
1 files changed, 10 insertions, 0 deletions
diff --git a/dot_config/sh/03_locale b/dot_config/sh/03_locale
new file mode 100644
index 0000000..f9dda6c
--- /dev/null
+++ b/dot_config/sh/03_locale
@@ -0,0 +1,10 @@
+if ! export LANG=$(locale -a | grep -E -i "en_CA.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: