From 7cf4efdab3f084b58eb4b347d3dcb11450c159d8 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Fri, 5 Jan 2024 15:10:34 -0500 Subject: rak-meta --- dot_config/environment.d/02_xdg-base-dirs | 4 ++++ dot_config/environment.d/03_locale.tmpl | 10 ++++++++++ dot_config/sh/02_xdg-base-dirs | 4 ---- dot_config/sh/03_locale.tmpl | 10 ---------- 4 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 dot_config/environment.d/02_xdg-base-dirs create mode 100644 dot_config/environment.d/03_locale.tmpl delete mode 100644 dot_config/sh/02_xdg-base-dirs delete mode 100644 dot_config/sh/03_locale.tmpl (limited to 'dot_config') diff --git a/dot_config/environment.d/02_xdg-base-dirs b/dot_config/environment.d/02_xdg-base-dirs new file mode 100644 index 0000000..18acb96 --- /dev/null +++ b/dot_config/environment.d/02_xdg-base-dirs @@ -0,0 +1,4 @@ +export XDG_CACHE_HOME="${HOME}/.cache" +export XDG_CONFIG_HOME="${HOME}/.config" +export XDG_DATA_HOME="${HOME}/.local/share" +export XDG_STATE_HOME="${HOME}/.local/state" 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: diff --git a/dot_config/sh/02_xdg-base-dirs b/dot_config/sh/02_xdg-base-dirs deleted file mode 100644 index 18acb96..0000000 --- a/dot_config/sh/02_xdg-base-dirs +++ /dev/null @@ -1,4 +0,0 @@ -export XDG_CACHE_HOME="${HOME}/.cache" -export XDG_CONFIG_HOME="${HOME}/.config" -export XDG_DATA_HOME="${HOME}/.local/share" -export XDG_STATE_HOME="${HOME}/.local/state" diff --git a/dot_config/sh/03_locale.tmpl b/dot_config/sh/03_locale.tmpl deleted file mode 100644 index 7d73fb3..0000000 --- a/dot_config/sh/03_locale.tmpl +++ /dev/null @@ -1,10 +0,0 @@ -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