Search code examples
atom-editoriterm2oh-my-zsh

Opening the atom editor from iTerm2 window is displaying - 'zsh: command not found: atom'


Just installed iTerm2 with oh-my-zsh, with atom already installed..

I have cloned a git repo of mine to use on an older laptop and for some reason oh-my-zsh is not opening my atom on the usual command.

➜  LandingPage git:(master) atom .
zsh: command not found: atom

Tried rectifying it by accessing and changing the .zshrc file but permission is denied. Anyone any suggestions?

Thanks,

Ant


Solution

  • As per this question/answer it looks like atom may not have created a symlink to the atom command.

    This has nothing to do with zsh -- the first argument is just telling you the shell, the information after it is the error.

    For example on my machine (which doesn't have atom) when running zsh and trying to open a file with atom I get zsh: command not found: atom. When I try the same command with bash, I get bash: atom: command not found.

    Let me know if the above link doesn't work! Hopefully this helps.