--
You received this message because you are subscribed to the Google Groups "tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/CAG-LmmDMBRCpxTMveBPg28JpGXvJfg1hQzqA4tVtBbMuo07TiQ%40mail.gmail.com.
${//} is a bash feature so you will need to run your script with bash, #() will use /bin/sh by default. Change it to #(bash /path/to/script).
On Tue, 20 Oct 2020 at 14:56, Cecil Westerhof <cldwes...@gmail.com> wrote:I like to get a little bit of useful information in my statusline. So I have the following script:msg="$(date +%F)$(uptime)"# msg=${msg/ load average:/}
echo ${msg}In tmux.conf I have:set -g status-right '#(infoStatusline)'
set -g status-right-length 80The above script works with the second line commented out. But when I remove the comment it does not work anymore. The script gives the output I want when called from the command line, but the tmux status line becomes blank.What is happening here and how do I solve it?