Merge branch 'master' of github.com:dylanaraps/fetch

This commit is contained in:
Dylan 2016-02-26 00:26:08 +11:00
commit c44a5a53d0
2 changed files with 11 additions and 0 deletions

View File

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

10
fetch
View File

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