Added function to display currently logged in users

This commit is contained in:
Dylan 2016-02-25 16:11:53 +11:00
parent adba79551b
commit eb6213b880
2 changed files with 11 additions and 0 deletions

View file

@ -39,6 +39,7 @@ printinfo () {
# info "Battery" battery
# info "Local IP" localip
# info "Public IP" publicip
# info "Users" users
# info "Birthday" birthday
# info "Song" song

10
fetch
View file

@ -60,6 +60,7 @@ printinfo () {
# info "Song" song
# info "Local IP" localip
# info "Public IP" publicip
# info "Users" users
# info "Birthday" birthday
info linebreak
@ -1456,6 +1457,15 @@ getpublicip () {
# }}}
# Logged In Users {{{
getusers () {
users="$(who | awk '!seen[$1]++ {printf $1 ", "}')"
users=${users%\,*}
}
# }}}
# Birthday {{{
getbirthday () {