* usr/lib/byobu/session:

- don't count sessions that start with _
  - BUG: #892489
This commit is contained in:
Dustin Kirkland 2018-04-11 16:00:52 -05:00
commit db3d301216
2 changed files with 4 additions and 1 deletions

3
debian/changelog vendored
View file

@ -8,6 +8,9 @@ byobu (5.126) unreleased; urgency=medium
- use $BYOBU_EDITOR with Shift-F7 to open the printscreen buffer in
a new window; this fixes a bug on some distros where $EDITOR might
be undefined
* usr/lib/byobu/session:
- don't count sessions that start with _
- BUG: #892489
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 16 Mar 2018 10:09:57 -0700

View file

@ -26,7 +26,7 @@ __session() {
# Note: This will only work in byobu-tmux
case "$BYOBU_BACKEND" in
tmux)
local count=$(tmux list-sessions 2>/dev/null | wc -l)
local count=$(tmux list-sessions 2>/dev/null | grep -v "^_" | wc -l)
if [ $count -gt 1 ]; then
color u W k; printf "${ICON_SESSION}#S"; color --
else