Remove default locale file
This commit is contained in:
parent
64485105f0
commit
8b9e5e6532
1 changed files with 1 additions and 9 deletions
|
@ -1,8 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Start from known core "C" locale. This will get overwritten later.
|
||||
export LANG=C.UTF-8
|
||||
|
||||
# Set up XDG variables. See:
|
||||
# https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
|
||||
export XDG_DATA_DIRS=${XDG_DATA_DIRS:-/usr/local/share:/usr/share:/usr/pkg/share}
|
||||
|
@ -23,13 +20,8 @@ if [ ! -d "$XDG_RUNTIME_DIR" ] ; then install -d -m 0700 "$XDG_RUNTIME_DIR" ; fi
|
|||
if [ ! -d "$HOME/.local/bin" ] ; then install -d -m 0700 "$HOME/.local/bin" ; fi
|
||||
|
||||
# Locale and language.
|
||||
## Clear the existing locale settings and set options I always want.
|
||||
export TZ=Europe/London # Can override this elsewhere if needed.
|
||||
if ! [ -f /run/.containerenv ] && ! [ -f "$XDG_CONFIG_HOME/locale.conf" ] && [ -x /usr/bin/locale ]
|
||||
then
|
||||
LANG="C.UTF-8" /usr/bin/locale > "$XDG_CONFIG_HOME/locale.conf"
|
||||
fi
|
||||
if ! [ -f /run/.containerenv ] && [ -r "$XDG_CONFIG_HOME/locale.conf" ]
|
||||
if [ -r "$XDG_CONFIG_HOME/locale.conf" ]
|
||||
then
|
||||
. "$XDG_CONFIG_HOME/locale.conf"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue