add script to set locale

This commit is contained in:
csimonis 2024-11-02 21:33:03 +01:00
parent a61ae87386
commit 6d6619a4c4

13
sh/locales.sh Normal file
View File

@ -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