This is kind of a followup to another question.
I use a custom command in my gnome-terminal profile (
/usr/bin/fish). When using Ubuntu 14.04 a Ctrl-Shift-N opened a new gnome-terminal window in the same directory as the current terminal. With 16.04 this changed and now it always opens in
$HOME. I want the old behavior.
This has nothing to do with sourcing
/etc/profile.d/vte.sh. Fish does this correctly as I can observe directory changes in the title bar. If I uncheck the custom command box in my gnome-terminal profile, the new terminal window correctly uses the current directory. However, it use my system default shell: bash.
I cannot change my system shell (
chsh), because this is shared across other machines, where fish is not available.
I don't see a way to fix this from fish, since the terminals current directory is not available.
Edit: Since this a regression in Ubuntu, I also reported this as #1609342 to Ubuntu.