atom-terminus

Open terminal in the current file's directory. This is a fork of the atom-terminal package with various improvements.

duhdugg

3,815

3

1.1.3

MIT

GitHub

atom-terminus

atom-terminus

How To

Open terminal on current file's directory with ctrl-shift-t.

Open a terminal in the current file's project root directory with alt-shift-t.

Keybindings: ctrl-shift-t, alt-shift-t

Install: apm install atom-terminus

Config:

"atom-terminus":
    # only necessary if standard config doesn't find terminal app
    app: "/path/to/your/favorite/terminal"
    args: "--use TheseOptions --when LaunchingTerminal"
    commandPrefix: "EnvironmentVariable=\"Value\""

What's New?

The following are improvements that you will find in this package which are not in atom-terminal:

What's Gone?

With the above improvements, the following options from atom-terminal have been removed.

Wild Cards

The following can be used anywhere in the Args or Command Prefix:

Examples

(Linux) Set environment variables for current file, use directory argument, and execute an alternate shell

"atom-terminus":
    app: "/usr/bin/gnome-terminal"
    args: "--working-directory \"%d\" -x zsh"
    commandPrefix: "p=\"%p\" f=\"%f\""

Clearing node variables

Atom spawns new processes with the environment variables NODE_ENV=production and NODE_PATH to Atom's internal library path. If you plan on executing npm install or yarn install, you should clear these variables.

On most non-Windows machines this will be as simple as:

"atom-terminus":
    commandPrefix: "NODE_ENV='' NODE_PATH=''"

(Windows) Clear environment variables and use directory argument

"atom-terminus":
    app: "C:\\Windows\\System32\\cmd.exe"
    args: "/K \"set NODE_PATH=& set NODE_ENV=& cd \"%d\"\""
    commandPrefix: ""