I can start a new terminal tab with gnome-terminal --tab zsh
. But now I want to also specify the directory of the new shell.
I couldn't find any options that wouldn't require me to put a cd
in the .zshrc
. This is not an option to me, since I want to specify the directory dynamically from the calling command. zsh -c
doesn't seem to work and piping the command into zsh does not result in an interactive shell (and even if, I doubt I could pass this to the gnome-terminal command).
gnome-terminal --working-directory=directoryName --tab zsh