From 14bd87c7b2b4efd9dee2d54bfe7f2a82041e749c Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Wed, 15 Sep 2021 23:05:01 +0200 Subject: [PATCH] added word boundaries when replacing uptime_xxx variables --- .tmux.conf | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 3cda41b..49236fb 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1242,19 +1242,19 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # case "$status_left $status_right" in # *'#{uptime_'*|*'#{?uptime_'*) # status_left=$(echo "$status_left" | sed -E \ -# -e 's/#\{(\?)?uptime_y/#\{\1@uptime_y/g' \ -# -e 's/#\{(\?)?uptime_d/#\{\1@uptime_d/g' \ +# -e 's/#\{(\?)?uptime_y\b/#\{\1@uptime_y/g' \ +# -e 's/#\{(\?)?uptime_d\b/#\{\1@uptime_d/g' \ # -e '/@uptime_y/ s/@uptime_d/@uptime_dy/g' \ # -e 's/#\{(\?)?uptime_h/#\{\1@uptime_h/g' \ -# -e 's/#\{(\?)?uptime_m/#\{\1@uptime_m/g' \ -# -e 's/#\{(\?)?uptime_s/#\{\1@uptime_s/g') +# -e 's/#\{(\?)?uptime_m\b/#\{\1@uptime_m/g' \ +# -e 's/#\{(\?)?uptime_s\b/#\{\1@uptime_s/g') # status_right=$(echo "$status_right" | sed -E \ -# -e 's/#\{(\?)?uptime_y/#\{\1@uptime_y/g' \ -# -e 's/#\{(\?)?uptime_d/#\{\1@uptime_d/g' \ +# -e 's/#\{(\?)?uptime_y\b/#\{\1@uptime_y/g' \ +# -e 's/#\{(\?)?uptime_d\b/#\{\1@uptime_d/g' \ # -e '/@uptime_y/ s/@uptime_d/@uptime_dy/g' \ -# -e 's/#\{(\?)?uptime_h/#\{\1@uptime_h/g' \ -# -e 's/#\{(\?)?uptime_m/#\{\1@uptime_m/g' \ -# -e 's/#\{(\?)?uptime_s/#\{\1@uptime_s/g') +# -e 's/#\{(\?)?uptime_h\b/#\{\1@uptime_h/g' \ +# -e 's/#\{(\?)?uptime_m\b/#\{\1@uptime_m/g' \ +# -e 's/#\{(\?)?uptime_s\b/#\{\1@uptime_s/g') # interval=60 # case "$status_left $status_right" in # *'#{@uptime_s}'*)