shellcheck icon indicating copy to clipboard operation
shellcheck copied to clipboard

zsh (and more?) shell configuration files treated as unknown

Open mcandre opened this issue 1 month ago • 0 comments

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

mcandre avatar Dec 08 '25 17:12 mcandre