tmux-plugins / tmux-net-speed

Tmux plugin to monitor upload and download speed of one or all interfaces
MIT License
84 stars 23 forks source link

do global interpolation #19

Open Shuraken007 opened 1 year ago

Shuraken007 commented 1 year ago

I wanted to hide zero value "0 B/s", conditions are supported.

readonly show_speed="#{?#{!=:#{download_speed},0 B/s},#{download_speed},}"

Problem is, that do_interpolation() expands only first #{download_speed}

Please do global variable expanding result=${input//$download_interpolation/$download_speed} vs result=${input/$download_interpolation/$download_speed}