Adjust locale settings for local usage
This commit is contained in:
parent
49229d47d1
commit
1c00046798
6 changed files with 187 additions and 22 deletions
|
|
@ -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 ""
|
||||
|
|
|
|||
Loading…
Reference in a new issue