Skip to content

Instantly share code, notes, and snippets.

@damwhit
Forked from timomitchel/Quick_Open_Editor.md
Last active July 1, 2019 05:16
Show Gist options
  • Save damwhit/90d0e9e27a964bd176a167c78e676e8e to your computer and use it in GitHub Desktop.
Save damwhit/90d0e9e27a964bd176a167c78e676e8e to your computer and use it in GitHub Desktop.
How to configure your editor to open from the command line

Steps to Enable Shell Command

Atom

You can try opening Atom and clicking on the Atom tab to navigate to the Install Shell Commands prompt.

Atom-Shell-Commands

Open a terminal window and type atom .

If the text editor opens, you're done! If it does not then follow the steps below:

If you have already installed Atom, and it is in your applications directory, run this command:

$ which atom

If the return of that command is:

$ which atom
/usr/local/bin/atom

Then the shell command is installed.

You can now run the command:

$ atom .

To open your text editor to the current directory location of your terminal.

If which atom returned nothing like so:

$ which atom
$
  • Follow these Steps:
    • Open Atom manually.
    • Use the shortcut command + shift + p to open your Command Pallete.
    • Type: Window: Install Shell Commands into the pop-up window (this is your Command Pallete for Atom).
    • Enter your computer password when prompted.
    • Restart your terminal and test by running atom . in the terminal in the directory of your choosing.
    • This should open Atom text editor at the directory level you run the command from.

Atom Docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment