Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open the iTerm in the sublime text 3?

I installed the Terminal package in the sublime3, setting in the package:

{
"terminal": "iTerm.sh",
"parameters": []
}

But when I press the command + shift + T buttons together,there is no response,Why?

like image 656
ycjcl868 Avatar asked Aug 14 '16 05:08

ycjcl868


2 Answers

For iTerm2 on Sublime Text 3 with Bond's terminal package do the following:

  • In Sublime 3, go to Preferences > Package Settings > Terminal > Settings - User

Paste the following & save:

{
    "terminal": "iTerm2-v3.sh",
    "parameters": ["--open-in-tab"]
}

Test opening project folder on iTerm2 with cmd + shift + T (Working on Sublime 3 build 3131)

Terminal package site reference:

enter image description here

like image 199
Syden Avatar answered Oct 25 '22 04:10

Syden


Download this shell script and add it to your system path with the name iTerm2-v3.sh. Make sure you have iTerm >= 3.0.4 or even better, latest iTerm2-v3. Go to Preferences > Package Settings > Terminal > Settings - User. Your settings file should look like this.

{
    "terminal": "iTerm2-v3.sh",
    "parameters": ["--open-in-tab"]
}

Also, double check your shortcut is not overridden by other command. Hit Cmd+Shift+P and type Terminal: Open

This should work. The iTerm might not get activated, you have to switch to iTerm2 and check if the current folder in Sublime has opened in a new tab in iTerm2.

like image 43
manish_s Avatar answered Oct 25 '22 06:10

manish_s