Skip to content

Commit

Permalink
Update prompt_bar.py
Browse files Browse the repository at this point in the history
  • Loading branch information
anki-code committed May 2, 2024
1 parent ff3bf1e commit 8002880
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xontrib/prompt_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ def _field_date_time_tz():
def _screens():
line = []
sty = None
for l in __xonsh__.subproc_captured_stdout(['bash', '-c', 'screen -ls; exit 0']).splitlines(): # bash is to fix https://github.com/xonsh/xonsh/issues/4912
scrs = __xonsh__.subproc_captured_stdout(['bash', '-c', 'screen -ls; exit 0'])
if isinstance(scrs, str):
scrs = scrs.splitlines()
for l in scrs: # bash is to fix https://github.com/xonsh/xonsh/issues/4912
if '\t' in l:
screen_name = l.split('\t')[1].split('.')[1]
if sty is None: # lazy load
Expand Down

0 comments on commit 8002880

Please sign in to comment.