aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2022-12-01 13:47:13 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2022-12-01 13:47:13 +0100
commit379ef6f0b1e41f53820f07041bc615c0a1ca0352 (patch)
tree62960da4a67705d2c81edcc18ba40456b1cfca89
parent09a75d50fbbfdbe4b5132371757daf3cae87602e (diff)
downloaddotfiles-379ef6f0b1e41f53820f07041bc615c0a1ca0352.tar.gz
envvar editor
-rw-r--r--bash/env.profile6
1 files changed, 5 insertions, 1 deletions
diff --git a/bash/env.profile b/bash/env.profile
index ac3f13b..d7e09b9 100644
--- a/bash/env.profile
+++ b/bash/env.profile
@@ -17,7 +17,11 @@ appendpath "$HOME/.ghcup/bin"
export PATH
unset appendpath
-export EDITOR=nvim
+if which nvim > /dev/null 2>&1 && [ ! "$FORCE_VANILLA_VIM" = "yes" ] ; then
+ export EDITOR=nvim
+else
+ export EDITOR=vim
+fi
#Java Gradle hopme PATH
export GRADLE_USER_HOME=~/.gradle