Recently I started using Microsoft Visual Studio Code instead of Atom. So I deleted Atom from the Applications folder. However, I can still autocomplete the atom
command in terminal. And searching for it with where atom
doesn't give any results (command not found
).
I tried looking for it in ~/.zshrc
but nothing there points to atom
either.
Any idea where I can remove that command?
Using iTerm2 and om-my-zsh.
Update
- The output of
type -a atom
isatom not found
. - This is after a reboot of my machine; the terminal has been refreshed.
- The output of
alias
does not containatom
. - I misremembered the
which
command and usedwhere
instead. That was my issue. Accepted the answer stating this.
Best Answer
where atom
will result incommand not found
, true, but because thewhere
command is not found; when using bash. A zsh error would have issued "atom not found
"Try
which atom
to get the result of/usr/local/bin/atom
in bash.That means you just need to
rm /usr/local/bin/atom
to get rid of that command.(Atom.app install also
apm
, so be sure to remove that as well.)