Terminal tab not opening in same directory

6,719

Solution 1

I think you are dealing with this bug. You will find there in the comment #2 the following workaround (thanks to Tim (darkxst) for it):

add the following line to the end of ~/.bashrc file:

. /etc/profile.d/vte.sh

Solution 2

In 16.04 a symlink may be missing. The file can be found at /etc/profile.d/vte-2.91.sh

Source

Solution 3

The

. /etc/profile.d/vte.sh

workaround did not work for me. However, what did work is: I finally discovered that in the Profile Preferences' "Command" tab (right click in the terminal->Profiles) unchecking "Run a custom command instead of my shell", if it is checked, can also solve this issue.

Share:
6,719

Related videos on Youtube

b-m-f
Author by

b-m-f

Updated on September 18, 2022

Comments

  • b-m-f
    b-m-f almost 2 years

    Since upgrading to Ubuntu 14.04 whenever I open a new Tab in the Terminal I am in the Home directory instead of the directory I was in in the other Tab.

    How can I change it to stay in the directory from the Tab I opened it from?

    • c0rp
      c0rp almost 10 years
      Read this, may be this is a bug
  • Andreas Mueller
    Andreas Mueller over 8 years
    Hm this doesn't work for me in Ubuntu 15.10 with zsh (and changing .zshrc)