Skip to content

Commit

Permalink
turn off history substitution in case it's been enabled (3)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gpakosz committed Mar 5, 2023
1 parent b17d57f commit f27641c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f27641c

Please sign in to comment.