From 69d20d225670c15f6186e2e45db48a6b97de6e20 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Tue, 26 Dec 2023 15:20:39 -0500 Subject: Update locale config --- dot_config/sh/locale | 10 ---------- dot_config/sh/locale.tmpl | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 dot_config/sh/locale create mode 100644 dot_config/sh/locale.tmpl (limited to 'dot_config') diff --git a/dot_config/sh/locale b/dot_config/sh/locale deleted file mode 100644 index f9dda6c..0000000 --- a/dot_config/sh/locale +++ /dev/null @@ -1,10 +0,0 @@ -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: diff --git a/dot_config/sh/locale.tmpl b/dot_config/sh/locale.tmpl new file mode 100644 index 0000000..7d73fb3 --- /dev/null +++ b/dot_config/sh/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: -- cgit v1.2.3