I am trying to open up files from my terminal using atom
. Which resulted in -bash: atom: command not found
. I then followed, installing the shell commands from the editor. That resulted in "EEXIST: file already exists, mkdir '/usr/local/bin'"
. I've previously tried to follow other recommendations on how to add the subl
alias and I guess I tried way too many things, that I didn't understand. Could I have messed up my $PATH
?
When I echo my path this is what it is /bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
.
My bash_profile looks like this when I opened it with nano:
export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH
export EDITOR='subl -w'
I don't remember if I added that first line when I tried adding subl
.
Should I remove that? I'm also using a MacOS High Sierra.
UPDATE
I removed what I had previously added in my .bash_profile
and my path is now: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
.
I then ran the command: sudo ln -s /Applications/Atom.app/Contents/Resources/app/atom.sh /usr/local/bin/atom
but got a ln: /usr/local/bin/atom: No such file or directory
error