mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-14 18:57:20 -07:00
* usr/lib/byobu/session:
- don't count sessions that start with _ - BUG: #892489
This commit is contained in:
parent
76560f004d
commit
db3d301216
2 changed files with 4 additions and 1 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue