Ask Your Question
0

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

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

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/vte.sh 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: https://gnunn1.github.io/tilix-web/ma... .

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

edit retag flag offensive close merge delete

Comments

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

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

1 Answer

Sort by ยป oldest newest most voted
0

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

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

Stats

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

Seen: 76 times

Last updated: Feb 19 '19