Open up another terminal session at the same path

I often needs to open up multiple Terminal session on the same path, example, one to launch rails server, then another to actually working with it. There are a few tricks on the internet, but most involved writing some applescript to achieve that.

I prefer a straightforward solution hence I keep on looking, finally found this piece in the trusted stackoverflow as usual.

Just need to type

open -a Terminal "`pwd`"

Just take note that it is a backtick and not the single quote mark, then you should have another terminal session open up at the current path.

Even easier in Windows Command Prompt, just type “start” at wherever you are, another cmd windows pop up at the same directory. Wow.

Leave a Reply

Your email address will not be published. Required fields are marked *