Add shell version to MOTD

This commit is contained in:
Anthony Rose 2022-08-19 09:42:47 +01:00
parent ae7936f490
commit 2c42757078

View file

@ -345,6 +345,13 @@ usermotd () {
then then
timedatectl show --property=Timezone | sed 's/Timezone=/TZ=/' timedatectl show --property=Timezone | sed 's/Timezone=/TZ=/'
fi fi
if [ -n "$BASH_VERSION" ]
then
echo "bash $BASH_VERSION"
elif [ -n "$ZSH_VERSION" ]
then
echo "zsh $ZSH_VERSION"
fi
} }
simpletls () { simpletls () {