Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it possibile to open iTerm in current Finder position

Tags:

macos

iterm2

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?

like image 771
sensorario Avatar asked May 16 '18 12:05

sensorario


People also ask

How do I open an iTerm in a specific folder?

It's in prefs->profiles->general. Set working directory to "Directory:" and enter the path you want there.

How do I open a terminal in a specific folder Mac?

Open the parent directory where your folder is located. Then single-click on the folder where you wish to launch a Terminal window, click on “Finder” followed by “Services,” and select “New Terminal at Folder.” Or you can simply press the keyboard shortcut that you assigned before.

How to launch an iTerm2 window from Finder on macOS Mojave+?

The following three ways to launch an iTerm2 window from Finder have been tested on iTerm2 version 3+ running on macOS Mojave+. Starting sometime with iTerm2 version 3.x, it puts New iTerm2 Window Here in System Preferences -> Keyboard -> Shortcuts -> Services under the Files and Folders section.

How to open the same folder in Finder from terminal?

While working in terminal, sometimes you just want to open the same folder location in Finder. To do this, you need not to open the finder and search for the folder, instead you can open the same location directly from terminal by typing a simple command. The command to open the current folder from terminal is:

How do I get the iTerm2 icon on my toolbar?

Right click on the spot on the toolbar and select Icon Only. To replace the generic Automator app icon with the iTerm2 icon, command + i on the original iTerm.app file, select the application icon in the top left corner of the window and command + c.

How to add iTerm2 shortcuts to Windows 10 keyboard?

Starting sometime with iTerm2 version 3.x, it puts New iTerm2 Window Here in System Preferences -> Keyboard -> Shortcuts -> Services under the Files and Folders section. You just have to check it and Add Shortcut.


3 Answers

Go to System Preferences -> 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.

iTerm2 launch preferences from Finder

like image 95
Vignesh Raja Avatar answered Oct 07 '22 06:10

Vignesh Raja


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.

like image 25
SrinR Avatar answered Oct 07 '22 06:10

SrinR


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.
like image 32
Natsfan Avatar answered Oct 07 '22 07:10

Natsfan