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 --- chezmoi.toml.censored | 2 +- dot_config/sh/locale | 10 ---------- dot_config/sh/locale.tmpl | 10 ++++++++++ 3 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 dot_config/sh/locale create mode 100644 dot_config/sh/locale.tmpl diff --git a/chezmoi.toml.censored b/chezmoi.toml.censored index 3a8f00e..2d258f3 100644 --- a/chezmoi.toml.censored +++ b/chezmoi.toml.censored @@ -1,7 +1,7 @@ [gpg] recipient = "4E469519ED677734268FBD958F7BF8FC4A11C97A" [data] - keychain_keys = "id_ed25519" + locale_base = "en_CA" password.cmu = "" password.eseptember = "" password.gmail = "" 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