File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 2
2
3
3
### master
4
4
- to speed up the "online test" ping uses only 1 packet
5
+ - fix issue with status-right and status-left whitespace being cut out
5
6
6
7
### v1.0.0, 2014-10-26
7
8
- README updates
Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ online_status_interpolation_string="\#{online_status}"
8
8
source $CURRENT_DIR /scripts/shared.sh
9
9
10
10
do_interpolation () {
11
- local string=$1
12
- local interpolated=${string/ $online_status_interpolation_string / $online_status_icon }
11
+ local string=" $1 "
12
+ local interpolated=" ${string/ $online_status_interpolation_string / $online_status_icon } "
13
13
echo " $interpolated "
14
14
}
15
15
16
16
update_tmux_option () {
17
- local option=$1
18
- local option_value=$( get_tmux_option " $option " )
19
- local new_option_value=$( do_interpolation " $option_value " )
17
+ local option=" $1 "
18
+ local option_value=" $( get_tmux_option " $option " ) "
19
+ local new_option_value=" $( do_interpolation " $option_value " ) "
20
20
set_tmux_option " $option " " $new_option_value "
21
21
}
22
22
Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ get_tmux_option() {
3
3
local default_value=$2
4
4
local option_value=$( tmux show-option -gqv " $option " )
5
5
if [ -z " $option_value " ]; then
6
- echo $default_value
6
+ echo " $default_value "
7
7
else
8
- echo $option_value
8
+ echo " $option_value "
9
9
fi
10
10
}
11
11
12
12
set_tmux_option () {
13
- local option=$1
14
- local value=$2
13
+ local option=" $1 "
14
+ local value=" $2 "
15
15
tmux set-option -gq " $option " " $value "
16
16
}
You can’t perform that action at this time.
0 commit comments