From 6d6619a4c4c23f426666db47d7c4c8d009779244 Mon Sep 17 00:00:00 2001 From: csimonis Date: Sat, 2 Nov 2024 21:33:03 +0100 Subject: [PATCH] add script to set locale --- sh/locales.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sh/locales.sh diff --git a/sh/locales.sh b/sh/locales.sh new file mode 100644 index 0000000..3e02d7b --- /dev/null +++ b/sh/locales.sh @@ -0,0 +1,13 @@ +# Uncomment german locale +sed -i 's/^# *\(de_DE.UTF-8\)/\1/' /etc/locale.gen + +# Generate locale +locale-gen + +# Export env vars +echo "export LC_ALL=de_DE.UTF-8" >> ~/.bashrc +echo "export LANG=de_DE.UTF-8" >> ~/.bashrc +echo "export LANGUAGE=de_DE.UTF-8" >> ~/.bashrc + +# Restart shell +bash