I have previously set some environment variables of my own like export EDITOR="vim" in my /etc/bash.bashrc. Also I have showmessage script:
export EDITOR="vim"
/etc/bash.bashrc