In the Terminal preferences you can find an option to open new windows and tabs in the current working directory. Yet there's a message that says that programs notify Terminal about the current working directory using scape sequences, which I don't know what it means.
But the Terminal itself is not doing this, as I would like to create a new tab when I press Cmd ⌘ + T to open at the same working directory (not ~/
).
I found this post but it doesn't address this. Here you have a figure with the options: