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).
Platform | Keyboard shortcut |
---|---|
Mac OS X | ctrl-cmd-t |
Windows | ctrl-alt-t |
Linux | ctrl-alt-t |
Platform | Keyboard shortcut |
---|---|
Mac OS X | alt-cmd-t |
Windows | ctrl-alt-shift-t |
Linux | ctrl-alt-shift-t |
- Open Automator and select
Application
as new document. - From the Library, add
Run Applescript
as Automator action. - Replace the sample AppleScript code with the code from terminal-tab.scpt.
- Save the Automator app as
TerminalTab.app
to your Applications folder. - In the
open-terminal-here
settings, setCommand
toopen -a TerminalTab.app "$PWD"
.
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"
...
- Install xdotool:
sudo apt-get install -y xdotool
- Download terminal-tab.sh and make it executable:
chmod +x ./terminal-tab.sh
- Move the script to a directory in your path:
sudo mv ./terminal-tab.sh /usr/local/bin/terminal-tab
- In the
open-terminal-here
settings, setCommand
to
terminal-tab .