shellcheck
shellcheck copied to clipboard
zsh (and more?) shell configuration files treated as unknown
Hi,
ShellCheck correctly identifies the basenames of (~)/.zshrc but not (/etc/)zshrc, nor (~/).zshenv, nor (/etc/)zshenv.
I imagine there may be other gaps as well.
Please register the full suite of common shell configuration filenames, so that ShellCheck will reliably associate the relevant shell language implementation.
Here is a Go example that maps various and sundry configuration filenames to language implementation:
https://github.com/mcandre/stank/blob/main/stank.go