This seems to be happening randomly, but every once in a while my "atom ." command in order to open a directory in atom won't work.
I run into the following terminal error - "zsh: command not found: atom".
Once I open up Atom manually, I can go ahead and install shell commands and the command works. However, the shell commands don't seem to be saving.
I've tried to edit my zshrc file and uncommented line two "export PATH=$HOME/bin:/usr/local/bin:$PATH". But this issue seems to still be happening.
Any help would be greatly appreciated!
Thanks!
which atom
to find out at any time theatom
command actually works). Then, make sure the containing directory is listed in yourPATH
setting in.zshrc
. – RafterPATH
. (Or, for instance, you're running in an elevated shell usingsu
orsudo
, which may use root's shell config instead.) This is hard to troubleshoot from afar without any further information, though. – Rafter/etc
. I'd recommend for you to try and understand what is different when the command doesn't work - i.e. what did you do before, what commands did you use in the same shell/terminal window, etc. Once you figure out a pattern, it becomes easier to try and figure out where the problem is coming from. – Rafter