Open terminal on current file's directory with
Open a terminal in the current file's project root directory with
apm install atom-terminus
"atom-terminus":# only necessary if standard config doesn't find terminal appapp: "/path/to/your/favorite/terminal"args: "--use TheseOptions --when LaunchingTerminal"commandPrefix: "EnvironmentVariable=\"Value\""
The following are improvements that you will find in this package which are not in atom-terminal:
With the above improvements, the following options from atom-terminal have been removed.
The following can be used anywhere in the Args or Command Prefix:
%d- The absolute path of the current file's directory or project root (whichever is executed)
%p- The absolute path of the current file
%f- The relative path of the current file (relative to
(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_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: ""
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.