I wrote a bash script to display cmus status in tmux status bar. It has worked fine for a while, but recently after a fresh reinstall of Debian 9 tmux displays <'path/cmus-status.sh' not ready>
instead of cmus status.
I add the following in ~/.tmux.conf to run the script:
set -g status-right '... #(path/cmus-status.sh) ...'
From this thread I learnt the problem is probably because tmux considers execution of the script "unfinished" and waits for it to end before displaying output. But the script is an infinite while
loop and not intended to stop.
If this is the cause, is there a way to tell tmux not to wait for scripts to finish and just display whatever they output? Or is this more of a tmux version-related issue?