3 this_file
="$(readlink -f -- "${BASH_SOURCE[0]}")"
4 readonly this_file this_dir
="${this_file%/*}"
9 # "a", as in, pass to sk -a
20 declare -a ls_files standard_files
22 # so, shellcheck doesn't like files that declare variables that are just
23 # used in other files that source them. Using -a like this is the only
24 # way to solve it. We can't just -a on everything because then we would
25 # get various files I didn't write and that don't pass shellcheck.
29 tmp
=$
(git ls-files
&& git ls-files
--others --exclude-standard)
30 mapfile
-t ls_files
<<<"$tmp"
31 for f
in "${ls_files[@]}"; do
33 for fignore
in ${a_files[@]} ${a_sourced_files[@]}; do
34 if [[ $f == "$fignore" ]]; then
39 if $skip; then continue; fi
41 standard_files
+=("$f")
45 sk
"${standard_files[@]}"