# bleh shellcheck can't handle disabling in an elif, so nesting this if.
# shellcheck disable=SC2154 # set in .bashrc
if [[ -s $bashrc_dir/err ]]; then
- # shellcheck source=/a/bin/errhandle/err
- source $bashrc_dir/err
+ # shellcheck source=/a/bin/errhandle/err
+ source $bashrc_dir/err
fi
fi
sk() {
-
-
# disable a warning with:
# shellcheck disable=SC2206 # reasoning
shellcheck -W 999 -x -e $quotes,$others "$@" || return $?
}
+skgit() {
+ local f
+ for f in $(i s | awk '$1 == "modified:" {print $2}'); do
+ if [[ $(head -n1 "$f") == '#!/bin/bash'* ]]; then
+ sk $f
+ fi
+ done
+}
# sl: ssh, but firsh rsync our bashrc and related files to a special
# directory on the remote host if needed.