I have a script that runs a command via zsh -c
. However, when zsh
runs, it doesn't appear to load ~/.zshrc
.
I understand a login shell flag exists, but even zsh -lc <command>
doesn't seem to work.
How can I get functions, aliases, and variables defined in my ~/.zshrc to populate when running it with zsh -c
?