File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11# Other settings and helper functions.
22
33debug_mode_enabled () {
4- [ -n " $TMUX_POWERLINE_DEBUG_MODE_ENABLED " -a " $TMUX_POWERLINE_DEBUG_MODE_ENABLED " != " false" ];
4+ [ -n " $TMUX_POWERLINE_DEBUG_MODE_ENABLED " ] && [ " $TMUX_POWERLINE_DEBUG_MODE_ENABLED " != " false" ];
55}
66
77patched_font_in_use () {
8- [ -z " $TMUX_POWERLINE_PATCHED_FONT_IN_USE " -o " $TMUX_POWERLINE_PATCHED_FONT_IN_USE " != " false" ];
8+ [ -z " $TMUX_POWERLINE_PATCHED_FONT_IN_USE " ] || [ " $TMUX_POWERLINE_PATCHED_FONT_IN_USE " != " false" ];
99}
Original file line number Diff line number Diff line change 22
33check_arg_side () {
44 local side=" $1 "
5- if ! [ " $side " == " left" -o " $side " == " right" -o " $side " == " init" ]; then
5+ if ! [[ " $side " == " left" || " $side " == " right" || " $side " == " init" ] ]; then
66 echo " Argument must be the side to handle {left, right} or {init} and not \" ${side} \" ."
77 exit 1
88 fi
Original file line number Diff line number Diff line change 22# In all cases $1 is the side to be muted (eg left/right).
33
44powerline_muted () {
5- [ -e " $( __powerline_mute_file $1 ) " ];
5+ [ -e " $( __powerline_mute_file " $1 " ) " ];
66}
77
88toggle_powerline_mute_status () {
9- if powerline_muted $1 ; then
10- rm " $( __powerline_mute_file $1 ) "
9+ if powerline_muted " $1 " ; then
10+ rm " $( __powerline_mute_file " $1 " ) "
1111 else
12- touch " $( __powerline_mute_file $1 ) "
12+ touch " $( __powerline_mute_file " $1 " ) "
1313 fi
1414}
1515
You can’t perform that action at this time.
0 commit comments