feat: show $SHELL version

This commit is contained in:
David JULIEN 2021-09-23 23:27:19 +02:00
parent 4f13e34eee
commit b52234755e

View File

@ -19,7 +19,7 @@ os='Gentoo'
kernel="$(uname -sr)" kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')" uptime="$(uptime -p | sed 's/up //')"
packages="$(printf '%s\n' /var/db/pkg/*/* | wc -l)" packages="$(printf '%s\n' /var/db/pkg/*/* | wc -l)"
shell="$(basename "$SHELL")" shell="$($SHELL --version | sed -e 's/(.*)//')"
wm="$(tail -n 1 "$XDG_CONFIG_HOME/X11/xinitrc" | cut -d ' ' -f 2)" wm="$(tail -n 1 "$XDG_CONFIG_HOME/X11/xinitrc" | cut -d ' ' -f 2)"
# parse the '/proc/meminfo' file splitting on ':' and 'k'. # parse the '/proc/meminfo' file splitting on ':' and 'k'.