Skip to content

Commit 09be78c

Browse files
bcc32martinbeentjes
authored andcommitted
Substitute all occurrences of variables (#63) (#64)
This commit addresses #63 by making sure all occurrences of each variables in the status line are substituted.
1 parent b4cf61d commit 09be78c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

battery.tmux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ set_tmux_option() {
3030
do_interpolation() {
3131
local all_interpolated="$1"
3232
for ((i=0; i<${#battery_commands[@]}; i++)); do
33-
all_interpolated=${all_interpolated/${battery_interpolation[$i]}/${battery_commands[$i]}}
33+
all_interpolated=${all_interpolated//${battery_interpolation[$i]}/${battery_commands[$i]}}
3434
done
3535
echo "$all_interpolated"
3636
}

0 commit comments

Comments
 (0)