In order to launch a new terminal and run a zsh function on it, I am trying to run the following
command from within an
urxvtc terminal (the
urxvtd is running as a
urxvtc -e zsh -c "my-zsh-defined-function"
which doesn't work as the function is unknown. I need to explicitly source my
zshrc to make it work
urxvtc -e zsh -c "source ~/.zshrc; my-zsh-defined-function"
The problem is, I don't understand why. Shouldn't
.zshrc as when I run
then I type