I would like to set Atom as my default editor for
In order to do this, I set in my
export EDITOR="atom -nw"
and reload the file with
source .bashrc. Anyway, when I try to open a text file through
open filename, it always opens it with TextEdit.
I also tried variations of the above, such as
export EDITOR=atom, or exporting
I am sure that
.bashrc gets loaded on login.
What am I missing/doing wrong?