Last active
June 8, 2023 22:44
-
-
Save NathanaelGandhi/4fc0b01d4b1cb32c1f47ed10ba9d4f9d to your computer and use it in GitHub Desktop.
bash function to setup locale information
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -eu | |
# author: Nathanael Gandhi | |
# github.com/NathanaelGandhi | |
################################################################################ | |
# setup locale information # | |
################################################################################ | |
setupLocale() | |
{ | |
locale_id=en_AU.UTF-8 | |
echo " • Setup locale default ($locale_id)" | |
apt-get install -y locales | |
locale-gen "$locale_id" | |
update-locale "$locale_id" | |
export LANG="$locale_id" | |
export LC_ALL="$local_id" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment