Launch "snappy" atom from terminal

Formerly, I was using atom installed from the Ubuntu official repos. I could easily open a project (folder) typing atom .

I recently have installed it using the snap package that Ubuntu provides. Everything looks fine, except for if I try to launch it as I used to do it I get the following error:

> $ atom .
No command 'atom' found, did you mean: Command 'atrm' from package 'at' (main) Command 'atop' from package 'atop' (universe) Command 'atoms' from package 'horae' (multiverse) Command 'atom4' from package 'atom4' (universe) Command 'atobm' from package 'x11-apps' (main)
zsh: command not found: atom

However, I can launch it normally from the unity launcher.

This is Ubuntu 16.04 and Unity as DE.

1 Answer

You may launch atom by the following command:

snap run atom

In order to launch it using the shorter command atom, you can set this alias:

alias atom='snap run atom'

and write it into your .bashrc or .zshrc file, so every new terminal instance has it automatically set.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like