mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* usr/bin/byobu-select-session:
- fix select session to obey BYOBU_BACKEND
This commit is contained in:
parent
a56fc98563
commit
4ff20f7680
2 changed files with 4 additions and 2 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -8,6 +8,8 @@ byobu (4.40) unreleased; urgency=low
|
|||
- save a few characters on the status line
|
||||
* usr/bin/byobu:
|
||||
- support detection of tmux sessions
|
||||
* usr/bin/byobu-select-session:
|
||||
- fix select session to obey BYOBU_BACKEND
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 05 Oct 2011 18:05:32 -0400
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ text = []
|
|||
def get_sessions():
|
||||
sessions = []
|
||||
i = 0
|
||||
if commands.getstatusoutput("command -v screen")[0] == 0:
|
||||
if BYOBU_BACKEND == "screen":
|
||||
output = commands.getstatusoutput("screen -ls")
|
||||
if output[0] >= 0:
|
||||
for s in output[1].split("\n"):
|
||||
|
@ -43,7 +43,7 @@ def get_sessions():
|
|||
items = s.split(" ")
|
||||
sessions.append("screen____%s" % items[1])
|
||||
i += 1
|
||||
if commands.getstatusoutput("command -v tmux")[0] == 0:
|
||||
if BYOBU_BACKEND == "tmux":
|
||||
output = commands.getstatusoutput("tmux list-sessions")
|
||||
if output[0] == 0:
|
||||
for s in output[1].split("\n"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue