From 8b9e5e65321bf5234be8d0111c892fecccd5a66d Mon Sep 17 00:00:00 2001 From: Anthony Rose Date: Fri, 3 Jan 2025 11:11:55 +0000 Subject: [PATCH] Remove default locale file --- roles/home-cli/files/profile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/roles/home-cli/files/profile b/roles/home-cli/files/profile index 6b88c9f..3a6f090 100644 --- a/roles/home-cli/files/profile +++ b/roles/home-cli/files/profile @@ -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