aboutsummaryrefslogtreecommitdiff
path: root/dot_config/environment.d
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2024-01-05 15:10:34 -0500
committerRyan Kavanagh <rak@rak.ac>2024-01-05 15:10:34 -0500
commit7cf4efdab3f084b58eb4b347d3dcb11450c159d8 (patch)
treee5254ec875db80f59786b11cd066b21bcf8e1b7b /dot_config/environment.d
parentpowerlevel10k version v1.19.0 (diff)
rak-meta
Diffstat (limited to 'dot_config/environment.d')
-rw-r--r--dot_config/environment.d/02_xdg-base-dirs4
-rw-r--r--dot_config/environment.d/03_locale.tmpl10
2 files changed, 14 insertions, 0 deletions
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: