Sets editor variable and fixed indention issue

I normally get editor setting from $EDITOR variable in .profile but now it is
also here (in case I end up in some none bash shell)