diff --git a/.bashrc b/.bashrc index cf83422f835a0ae13ad621ba8363f7de296a2709..9fe81c84741ef2b9f9df152af7358f082446a32f 100644 --- a/.bashrc +++ b/.bashrc @@ -140,6 +140,7 @@ alias check_unix='nc -Uvzw3' alias listen_tcp='nc -vlk 0.0.0.0' alias listen_udp='nc -uvlk 0.0.0.0' alias listen_unix='nc -Uvlk' +# shellcheck disable=SC2032 alias rm='rm --dir' alias tfa='terraform apply tfplan' alias tfvf='tfv && terraform fmt -diff' @@ -276,6 +277,7 @@ sync_comics () { this_month="$( date "$format" )" last_month="$( date --date '1 month ago' "$format" )" rsync --prune-empty-dirs --ignore-missing-args --recursive --compress --progress --exclude "*.part" "$last_month" "$this_month" "$HOME/Downloads/Comics/" + # shellcheck disable=SC2033 find "$HOME/Downloads/Comics/" -name "$(date --date '2 month ago' +'0-Day\ Week\ of\ %Y.%m.*')" -exec rm -r {} + } diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6031cfc2707b3264341ede308cc2e996905f074d..a3af767e2f6de6eb60fb623bb350f05912479fac 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,6 +8,7 @@ repos: - id: check-executables-have-shebangs - id: check-merge-conflict - id: check-symlinks + exclude: myclirc|netrc|packet-cli|mycli-history|scwrc - id: detect-private-key - id: trailing-whitespace - id: requirements-txt-fixer