Linux - change default editor

Add the following lines to the ~/.bashrc file.
    
        export EDITOR='nano'
        export VISUAL='nano'