Show the timezone in usermotd
This commit is contained in:
parent
99991bedd4
commit
d288a54f80
1 changed files with 6 additions and 1 deletions
|
@ -213,10 +213,15 @@ usermotd () {
|
||||||
echo " $(. /etc/os-release; echo $NAME $VERSION)"
|
echo " $(. /etc/os-release; echo $NAME $VERSION)"
|
||||||
fi
|
fi
|
||||||
uptime
|
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"
|
echo "${XDG_CONFIG_HOME:-$HOME/.config}/locale.conf does not exist"
|
||||||
fi
|
fi
|
||||||
echo "LANG=$LANG"
|
echo "LANG=$LANG"
|
||||||
|
if [ -x /usr/bin/timedatectl ]
|
||||||
|
then
|
||||||
|
timedatectl show --property=Timezone | sed 's/Timezone=/TZ=/'
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$-" in
|
case "$-" in
|
||||||
|
|
Loading…
Reference in a new issue