From 270be39c68e84281bf985131dc03fab1af7f7e20 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Tue, 9 Feb 2021 20:12:26 +0000 Subject: [PATCH] Check for a user-dirs.locale file --- roles/home-cli/files/shrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/home-cli/files/shrc b/roles/home-cli/files/shrc index 7ad6ba5..6d3d362 100644 --- a/roles/home-cli/files/shrc +++ b/roles/home-cli/files/shrc @@ -53,7 +53,9 @@ set -o noclobber export LC_ALL='' export TIME_STYLE="long-iso" # Used by GNU 'ls'. ## Set the default language. -if [ -r "$HOME/.config/locale.conf" ]; then +if [ -r "$HOME/.config/user-dirs.locale" ]; then + LANG="$(cat $HOME/.config/user-dirs.locale).UTF-8" +elif [ -r "$HOME/.config/locale.conf" ]; then . "$HOME/.config/locale.conf" fi case "$LANG" in