From f27641c84619a3b44551a689bac8f5d9aa303bf9 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Sun, 5 Mar 2023 17:26:21 +0100 Subject: [PATCH] turn off history substitution in case it's been enabled (3) disabled SC3041 violation and fixed SC2015 violation SC3041 (warning): In POSIX sh, set flag -H is undefined SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true --- .tmux.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index 836c063..c1fa09c 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -167,7 +167,10 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration' # # unset GREP_OPTIONS # export LC_NUMERIC=C -# (set +H 2>/dev/null) && set +H || true +# # shellcheck disable=SC3041 +# if (set +H 2>/dev/null); then +# set +H +# fi # # if ! printf '' | sed -E 's///' 2>/dev/null; then # if printf '' | sed -r 's///' 2>/dev/null; then