sensorario
sensorario

Reputation: 21600

is it possibile to open iTerm in current Finder position

Sometimes it could be very useful to open new iTerm window. I've seen this feature in Gnome window manager. It is possible to get same feature on MaxOsX? Is there a software to do that?

Upvotes: 70

Views: 45744

Answers (8)

Hannes Schneidermayer
Hannes Schneidermayer

Reputation: 5717

Problem with current solutions: Doesn't work in current folder. Only if you right click a folder.

So do this:

  1. In Finder, press + + P to show the path bar.

  2. Then, right click your folder and choose the option. Voila!

Screenshot of Explanation

If you don't see this entry, you first have to set iTerm2 as your default Terminal. In the menubar: iTerm2 > Make iTerm2 Default Term

Upvotes: 23

Vignesh Raja
Vignesh Raja

Reputation: 8731

Go to System Settings -> Keyboard -> Keyboard Shortcuts -> Services -> Files and Folders and give preferred shortcuts.

The shortcut will open iTerm at the selected folder, instead of from the folder that has been opened.

enter image description here

Upvotes: 119

Filip
Filip

Reputation: 21

If you have BetterTouchTool, you can just create a Finder trigger with action "Open Active/Selected Folder With Specific App" and select "iTerm". Works for me!

BetterTouchTool screenshot

EDIT: You can even add Hotkey Window hotkey before "Open Active/Selected Folder With Specific App" to open the terminal in the hotkey window (as a tab). Really neat.

In hotkey window

Upvotes: 2

SrinR
SrinR

Reputation: 1023

You can right-click on the folder where you want iTerm2 to open, then select Services -> New iTerm2 Tab here.

You can also find other options in the Services menu to open iTerm2 and Terminal.

This was tested on iTerm2 3.x and Catalina and above.

Upvotes: 45

billy
billy

Reputation: 151

If you want to open iTerm in current Finder position try the following:

OpenInTerminal

https://github.com/Ji4n1ng/OpenInTerminal

Alternative and a bit older

TermHere

https://hashbang.productions/apps/termhere/ (last updated on 2016)

Both work without issues in MacOS Catalina

cdto doesn't support opening the folder in iTerm, so its a no go

Upvotes: 3

yue
yue

Reputation: 31

Try https://github.com/wonderyue/Go2ShellAppleScript. Something like Go2Shell. The latest update of Go2Shell is five years ago, due to the compatibility problem, I make a similar one with AppleScript.

Upvotes: 3

hdsenevi
hdsenevi

Reputation: 981

I've been using cdto forever before accidentally stumbling on to the accepted answer. Will definitely try out the accepted answer, but leaving a link to cdto here if someone finds in useful https://github.com/jbtule/cdto

Upvotes: -1

Natsfan
Natsfan

Reputation: 4802

There are two apps called "Go2Shell" and "ShellHere". Both place a small icon at the top of the finder window. When the icon is clicked a terminal window opens in the same directory as the finder window.

Go2Shell

  • Go2Shell can be downloaded from Mac App Store or developer's website. It is possible that you won't be able to install it from Mac App Store, because Go2Shell wasn't updated for a long time.
  • Go2Shell allows users to specify whether to open shell in Terminal or iTerm2.

ShellHere

  • Shellhere can be downloaded from here.
  • ShellHere allows users to open a folder only in uses only MacOS Terminal.

Upvotes: 10

Related Questions