Skip to content

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.

License

Notifications You must be signed in to change notification settings

usemodj/atom-open-terminal-here

 
 

Repository files navigation

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 .

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • CoffeeScript 43.3%
  • Shell 42.9%
  • AppleScript 13.8%