I would like to set Atom as my default editor for open
.
In order to do this, I set in my .bashrc
:
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 VISUAL
.
I am sure that .bashrc
gets loaded on login.
What am I missing/doing wrong?