When I open a new gnome terminal it loads zsh
and puts me in my home directory (~
). If I cd
around and then press Ctrl+Shift+T it opens a new tab in the same directory as my last tab. I like this behaviour, but instead of starting in my home dir, I want to start in some other dir. How can I do this?
I can't put a cd
command in ~/.zshrc
because that will run when I open a new tab, and I can't put it in ~/.zprofile
because that just doesn't run when I open a new terminal. So how do I do it?