That was fast. :-D
Op di 20 okt. 2020 om 15:59 schreef Nicholas Marriott <
[email protected]>:
> ${//} 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).
>
I start the script with:
#!/usr/bin/env bash
That works also and I find that a better solution.
Thanks.
Is it possible to let #() use bash by default?
On Tue, 20 Oct 2020 at 14:56, Cecil Westerhof <[email protected]>
> 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 80
>>
>> The 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?
>>
>
--
Cecil Westerhof
--
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 [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/tmux-users/CAG-LmmA1zQAHkxpWC0mCwPjgJnDfuZHCiwF__94Pq9PjAnnWrA%40mail.gmail.com.