Linux – How to open new terminal in current directory

arch linuxlinuxterminalurxvt

When in a directory, I sometimes want another terminal to be opened in the same directory.

For example, I'm in ~/code/someproject/src/, and I open a new terminal, by default, it opens in ~, how do I launch a new terminal in the current directory?

I'm running Arch Linux with urxvt as my terminal and i3 as my window manager.

Best Answer

There is a very informative thread over in the i3-faq forum that has various scripts/programs that tackle this very issue.

https://faq.i3wm.org/question/150/how-to-launch-a-terminal-from-here/

I went for the c program xcwd which really does a great job. It also works from within GUI programs.