You can try opening Atom and clicking on the Atom
tab to navigate to the Install Shell Commands
prompt.
Open a terminal window and type atom .
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.