Ask Your Question

Should gnome-terminal keep current directory when opening new tab?

asked 2019-02-19 14:17:51 -0500

Clueless gravatar image

As the title says: gnome-terminal does not keep current working directory when a new tab is open. Should it do that? Each new tab starts shell in home directory.

/etc/profile.d/ is sourced and PROMPT_COMMAND variable is set to __vte_prompt_command.

I first ran into the issue (was previously unaware of it) when trying to run tilix, which greeted me with a Configuration Issue Detectedmessage box pointing to this article: .

Strangely enough, it happens to me in gnome-terminal as well, despite sourcing

edit retag flag offensive close merge delete


I had the same issue with new gnome terminal tabs with Fedora 29, but sourcing in .bashrc solved it for me.

night manager gravatar imagenight manager ( 2019-04-13 11:06:17 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-02-19 16:28:47 -0500

wallyk gravatar image

Gnome-terminal doesn't do that for me. It always opens the new window in the same directory as the window which was open before.

Maybe your .bashrc (or whatever configuration file for the shell in use) is changing the directory?

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-02-19 14:17:51 -0500

Seen: 104 times

Last updated: Feb 19 '19