Show the timezone in usermotd

This commit is contained in:
Anthony Rose 2021-11-16 20:56:36 +00:00
parent 99991bedd4
commit d288a54f80

View file

@ -213,10 +213,15 @@ usermotd () {
echo " $(. /etc/os-release; echo $NAME $VERSION)"
fi
uptime
if ! [ -r "${XDG_CONFIG_HOME:-$HOME/.config}/locale.conf" ]; then
if ! [ -r "${XDG_CONFIG_HOME:-$HOME/.config}/locale.conf" ]
then
echo "${XDG_CONFIG_HOME:-$HOME/.config}/locale.conf does not exist"
fi
echo "LANG=$LANG"
if [ -x /usr/bin/timedatectl ]
then
timedatectl show --property=Timezone | sed 's/Timezone=/TZ=/'
fi
}
case "$-" in