gnome-terminal: Keep the current working directory when opening a new tab

Expected behaviour:
Open terminal with gnome-terminal.
cd foo
open new tab
in the new tab I am already in foo

What happens:
the new tab is still in the home directory.

How to fix it:
According to https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1132700 you have to add . /etc/profile.d/vte.sh to the .bashrc.
This fix works for me.

1 Like

You can apply that workaround yourself, there is no need for it to be default. It would just create complications when the bug is finally fixed. Updates should not mess with your .bashrc.

2 Likes

Forum kindly sponsored by