A heads up. Maybe? I created the .sh file in profile.d as described except that I replaced "vi" with "vim". When I restarted the computer it would not progress login from gui - each attempt would just return me to the login page. I found that I could login from the terminal where I got a complaint from bash about -o vim. I removed the file from profile.d and graphic login was restored. I have not corrected the commands to "vi" and tried again but will. Just wanted to warn others of the possibility
That seems to have been it. Maybe a warning to the readers not to get clever. "vi" yes. "vim" no. Manjaro Linux.
Thank you for the article and also to Maxim Stewart and Steven Bakker for their comments.