This is a app for opening a Terminal window from Finder window.
You can use iTerm2 window instead of Terminal window too.
Just launch OpenTerminal.app. When do so, a new Terminal window will be opened and move the current directory to the app's bundle path. But usually, use this app in the following two ways.
We can also register this app to Finder's toolbar, then launch it from there. In this way, we can open a new Terminal window with the finder's path as current directory immediately.
When you select a folder in a Finder window, you can open a new Terminal window and move the current directory to the selected folder's path by clicking this app's icon in the toolbar on the Finder window. Also you are able to selecting some of folders in a Finderwindow. In this time, each paths of folder's will be opend in separated Terminal windows.
Alternatively, you click with no selection, a new Terminal window will be opened with the path shown in Finder as current directory.
There is also a way to launch this app from macOS Dock.
To build this app, open Terminal and clone this repository. Then move this project directory and type xcodebuild. By doing this, this app will be created in build/Release directory.
git clone https://github.com/es-kumagai/OpenTerminal.git
cd OpenTerminal
xcodebuildThere are two ways to use this app.
First, OpenTerminal app move to any folder (e.g. /Application or ~/Application) then the app drag with ⌘+⌥ keys, and drop it to toolbar in a Finder window.
To drag this app and drop it to macOS Dock, the app will be registered to the Dock.
If you'd like to use iTerm2 window instead of Terminal window, execute following command on Terminal,
defaults write jp.ez-style.appid.OpenTerminal ESTargetTerminalBundleIdentifier "com.googlecode.iterm2"
In this time, Apple Script asks you to select
iTerm2application. If asked, please selectiTerm2application from displayed list.
To use Terminal window, execute following command on Terminal,
defaults remove jp.ez-style.appid.OpenTerminal ESTargetTerminalBundleIdentifier


