I have the Atom editor and was wondering how you can open a file or folder from the terminal in Atom. I am using a Mac. I am looking for a way to do this:
at
I am on mingw bash, so I have created ~.profile file with following: alias atom='~/AppData/Local/atom/bin/atom'
I had problems due to atom being unable to write its logfile when starting from the commandline. This cured it.
sudo chmod 777 ~/.atom/nohup.out
For Windows10 and new release of atom i solved the problem by adding in my ENV VARIABLE on the "PATH" row
%USERPROFILE%\AppData\Local\atom\bin
With conemu on windows 10 I couldn't call atom
from console even after I added %USERPROFILE%\AppData\Local\atom\bin
to PATH in environment variables. I just added
alias atom="C:/Users/me/AppData/local/atom/app-1.12.7/atom"
to my .bashrc
file.
The symlink solution for this stopped working for me in zsh today. I ended up creating an alias in my .zshrc
file instead:
alias atom='sh /Applications/Atom.app/Contents/Resources/app/atom.sh'
Iv'e noticed this recently with all new macs here at my office. Atom will be installed via an image for the developers but we found the Atom is never in the Application folder.
When doing a ls on the /usr/local/bin folder the path for atom will show something like "/private/var/folders/cs" . To resolve this, we just located atom.app and copied it into the application folder, then ran the system link commands provided by nwinkler which resoled the issue. Developers can now open atom from the command line with "atom" or open the current projects from their working director with "atom ."