Open the Terminal (Mac OS X, Linux) or Command Prompt (Windows) in the given directory via context menu or keyboard shortcut in the Atom text editor.
Clone or download
Pull request Compare This branch is 4 commits ahead, 2 commits behind blueimp:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
keymaps
menus
.gitignore
LICENSE.md
README.md
index.coffee
package.json
screenshot.png
terminal-tab.scpt
terminal-tab.sh

README.md

Open Terminal Here

Open the Terminal (Mac OS X, Linux) or Command Prompt (Windows) in the given directory via context menu or keyboard shortcut.

Modify open-terminal-here for open elementary Terminal(io.elementary.terminal) in the current directory on Atom Editor of Elementary OS (Ubuntu base).

Screenshot of the "Open Terminal Here" menu item displayed

Keyboard shortcuts

Open the Terminal in the current directory

Platform Keyboard shortcut
Mac OS X ctrl-cmd-t
Windows ctrl-alt-t
Linux ctrl-alt-t

Open the Terminal in the project directory

Platform Keyboard shortcut
Mac OS X alt-cmd-t
Windows ctrl-alt-shift-t
Linux ctrl-alt-shift-t

FAQ

How to open a new tab instead of a new window?

Mac OS X

  1. Open Automator and select Application as new document.
  2. From the Library, add Run Applescript as Automator action.
  3. Replace the sample AppleScript code with the code from terminal-tab.scpt.
  4. Save the Automator app as TerminalTab.app to your Applications folder.
  5. In the open-terminal-here settings, set Command to open -a TerminalTab.app "$PWD".

Elementary OS (based Ubuntu Linux)

Terminal on Elementary OS is io.Elementary.terminal and thus modified only the terminal-tab.sh.

On other Ubuntu Linux, change the WINDOW_CLASS script variable:

# `terminal-tab.sh` script:
# Elementary OS Terminal,
WINDOW_CLASS="io.elementary.terminal"
 ...
  1. Install xdotool: sudo apt-get install -y xdotool
  2. Download terminal-tab.sh and make it executable: chmod +x ./terminal-tab.sh
  3. Move the script to a directory in your path: sudo mv ./terminal-tab.sh /usr/local/bin/terminal-tab
  4. In the open-terminal-here settings, set Command to
 terminal-tab .