diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2022-12-01 13:47:13 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2022-12-01 13:47:13 +0100 |
commit | 379ef6f0b1e41f53820f07041bc615c0a1ca0352 (patch) | |
tree | 62960da4a67705d2c81edcc18ba40456b1cfca89 | |
parent | 09a75d50fbbfdbe4b5132371757daf3cae87602e (diff) | |
download | dotfiles-379ef6f0b1e41f53820f07041bc615c0a1ca0352.tar.gz |
envvar editor
-rw-r--r-- | bash/env.profile | 6 |
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 |