* bin/users, byobu.1: don't display '0#' if no users logged in; waste of

space, match behavior of updates_available


Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-07-06 00:36:37 -05:00
commit e3f0e628c3
3 changed files with 7 additions and 4 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh -e
#
# users: print the number of users on the machine
# users: print the number of remote users on the machine
# Copyright (C) 2009 Raphaël Pinson.
# Copyright (C) 2009 Canonical Ltd.
#
@ -25,4 +25,5 @@ if [ "$1" = "--detail" ]; then
exit 0
fi
printf "\005{=b wr}%d\005{-}\005{= wr}#\005{-} " `pgrep -c -f "sshd:.*@"`
count=`pgrep -c -f "sshd:.*@"` || exit 0
printf "\005{=b wr}%d\005{-}\005{= wr}#\005{-} " $count

View file

@ -59,7 +59,7 @@ byobu \- wrapper script for seeding a user's byobu configuration and launching s
\fBuptime\fP \- the total system uptime since last boot; displayed in the lower bar toward the right in blue text on a grey background
\fBusers\fP \- the number of users logged into the system via sshd; displayed in the lower bar toward the right in red text on a grey background with a trailing '#' sign
\fBusers\fP \- the number of remote users logged into the system via sshd, empty if 0 users; displayed in the lower bar toward the right in red text on a grey background with a trailing '#' sign
\fBwhoami\fP \- the name of the user who owns the screen session; displayed in the upper bar toward the far right in bold black text on a grey background

4
debian/changelog vendored
View file

@ -10,8 +10,10 @@ byobu (2.19) unreleased; urgency=low
* bin/fan_speed, byobu-config, byobu.1, profiles/common,
profiles_generator/profile.skel, rpm/byobu.spec, statusrc: added cpu
fan speed status
* bin/users, byobu.1: don't display '0#' if no users logged in; waste of
space, match behavior of updates_available
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 03 Jul 2009 16:57:03 -0700
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 06 Jul 2009 00:35:45 -0500
byobu (2.18-0ubuntu1) karmic; urgency=low