Download Atom 1.28.2. Powerful GitHub-created text editor for programmers. GitHub is one of the biggest software development communities on the Internet. Atom, in turn, is an open-source text editor that can be used as an IDE for a plethora of programming languages, and its capabilities can be extended. 4) At the top of atom editor click atom, find install shell command click on it and it will install atom shell into your mac os. 5) Now enjoy your Atom editor Thank you for watching.
Active8 months ago
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:
Is this possible and how do I set it up?
Flip2,48122 gold badges2121 silver badges4747 bronze badges
AndersAnders4,49377 gold badges2424 silver badges3333 bronze badges
17 Answers
When Atom installs it automatically creates a symlink in your /usr/local/bin. However in case it hasn't, you can create it yourself on your Mac
Now you can use
nwinkleratom folder_name
to open a folder and atom file_name
to open a file. Hope this helps.35.7k1717 gold badges121121 silver badges133133 bronze badges
user3283997
With the Atom editor open, in the menu bar:
Click Atom >> Install Shell Commands
You should expect to see:
Potentially restart your terminal. (I did just out of habit, not sure if you need to)
nelsonic18.5k1313 gold badges7171 silver badges9999 bronze badges
shaheeneryshaheenery7,37222 gold badges1212 silver badges1313 bronze badges
Roll your own with @Clockworks solution, or in Atom, choose the menu option Atom > Install Shell Commands. This creates two symlinks in
/usr/local/bin
The
thomaxthomaxatom
command lets you do exactly what you're asking. apm
is the command line package manager.5,82233 gold badges3838 silver badges5858 bronze badges
For Windows 7 x64 with default Atom installation add this to your PATH
and restart any running consoles
(if you don't find Atom there - right-click Atom icon and navigate to Target)
sbedulinsbedulin
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'
scottmcallisterscottmcallister
On macOS you can add it to your
~/.bash_profile
as
alias atom='open -a 'Atom'
and from terminal just call
atom filename.whatever
Alex BartişAlex Bartiş
Atom Editor For Mac
Dejay ClaytonDejay Clayton2,53711 gold badge2020 silver badges1616 bronze badges
For Windows10 and new release of atom i solved the problem by adding in my ENV VARIABLE on the 'PATH' row
LaurentLaurent
In addition to @sbedulin (Greeting, lovely Windows users!)
The general path on Windows should be
If you are using a bash emulator like babun.You'd better checkout the shell files, which only available in the real app folders
Atom Text Editor Mac
Community♦
Paris Qian SenParis Qian Sen
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 .'
GovnaGovna
Another simple solution is to add /usr/local/bin to your PATH. I had the same issue, I installed shell commands (see shaheenery's response) the symlinks already existed and pointing to the correct destination (see thomax's response), however I would still get 'not found'. I'm using Korn Shell btw.
Here's what I did:
- Open your ~/.profile using your choice of editor (in my case
$ emacs ~/.kshrc
) - Add this line:
export PATH='/usr/local/bin:${PATH}'
- Save and exit
- Restart terminal or
source ~/.profile
- Test
$ atom -h
Jason RobinsonJason Robinson
Upgrading Atom appears to break command line functionality on the occasion. Looks like in my case it created two versions of the application instead of overwriting them. Occurs because the new file structure doesn't match file paths created by 'Atom -> Install Shell Commands'. In order fix the issue you'll need to do the following.
- Move 'Atom X' from Documents into Applications (why it ended up in here, I have no idea)
- Rename 'Atom X' to 'Atom'
- Might need to restart your terminal and Atom
After that everything should work just like it did before. Hopefully this saves someone 30 minutes of poking around.
Ash BlueAsh Blue1,81944 gold badges2323 silver badges3030 bronze badges
With conemu on windows 10 I couldn't call
atom
from console even after I added %USERPROFILE%AppDataLocalatombin
to PATH in environment variables. I just addedto my
Daniel LizikDaniel Lizik.bashrc
file.2,29422 gold badges1111 silver badges3232 bronze badges
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
andrew pateandrew pate
add path(:/usr/local/bin/) in profile.
mac: $home/.bash_profile
export PATH=$GOPATH/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:$PATH
Peter ZhangPeter Zhang
I am on mingw bash, so I have created ~.profile file with following:alias atom='~/AppData/Local/atom/bin/atom'
Martin KuncMartin Kunc
Make sure to put (move) the atom into Application directory.
Izhari Ishak AksaIzhari Ishak Aksa
protected by Community♦Aug 31 '16 at 21:53
Atom Editor Download For Mac
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Would you like to answer one of these unanswered questions instead?