Reputation: 21600
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
Reputation: 5717
Problem with current solutions: Doesn't work in current folder. Only if you right click a folder.
So do this:
In Finder, press ⌥ + ⌘ + P to show the path bar.
Then, right click your folder and choose the option. Voila!
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
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.
Upvotes: 119
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!
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.
Upvotes: 2
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
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
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
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
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.
Upvotes: 10