Adjust locale settings for local usage

This commit is contained in:
Alexander Hess 2026-08-28 15:03:34 +02:00
commit 417ed15f47
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
6 changed files with 187 additions and 22 deletions

View file

@ -143,6 +143,10 @@ done
unset _key
locales_ok=1
sh "$XDG_BIN_HOME/ensure-locales" >/dev/null 2>&1 || locales_ok=0
if command -v batcat >/dev/null 2>&1 && ! command -v bat >/dev/null 2>&1; then
ln -sf "$(command -v batcat)" "$XDG_BIN_HOME/bat"
fi
@ -191,6 +195,13 @@ fi
echo ""
echo "The dotfiles were installed successfully (branch: $DOTFILES_BRANCH)"
echo ""
if [ "$locales_ok" -ne 1 ]; then
echo "WARNING: Some locales are missing, fix:"
echo " sudo $XDG_BIN_HOME/ensure-locales"
echo ""
fi
echo "Reload your shell to use them:"
echo " exec \$SHELL -l"
echo ""