From 9df027d4a6f8d781a00901402d8d69750a116671 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Thu, 2 Mar 2023 12:07:00 -0600 Subject: [PATCH] Update dot_envvar.tmpl --- dot_envvar.tmpl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dot_envvar.tmpl b/dot_envvar.tmpl index 620d511..42346d3 100644 --- a/dot_envvar.tmpl +++ b/dot_envvar.tmpl @@ -4,12 +4,14 @@ if [ $(command -v pipx) ]; then fi # Preferred editor for local and remote sessions -if [ $(command -v nano) ]; then +if [ $(command -v nvim) ]; then + export EDITOR=nvim +elif [ $(command -v nano) ]; then export EDITOR=nano -elif [ $(command -v emacs) ]; then - export EDITOR='emacs -nw' elif [ $(command -v vim) ]; then export EDITOR=vim +elif [ $(command -v emacs) ]; then + export EDITOR='emacs -nw' fi if [ $(command -v kate) ]; then