From a631d03b29746903cfa774cb366462fc0980c657 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Fri, 26 May 2017 15:49:35 +0200 Subject: [PATCH] use grep -E instead of egrep as per shellcheck SC2196 warning --- .tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index a29b891..115c1e1 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -250,7 +250,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # case "$uname_s" in # *Darwin*) # batt=$(pmset -g batt) -# percentage=$(echo "$batt" |egrep -o [0-9]+%) || return +# percentage=$(echo "$batt" | grep -E -o [0-9]+%) || return # discharging=$(echo "$batt" | grep -qi "discharging" && echo "true" || echo "false") # charge="${percentage%%%} / 100" # ;;