summaryrefslogtreecommitdiffstats
path: root/.profile
diff options
context:
space:
mode:
Diffstat (limited to '.profile')
-rw-r--r--.profile19
1 files changed, 9 insertions, 10 deletions
diff --git a/.profile b/.profile
index 2a83649..3eba7f4 100644
--- a/.profile
+++ b/.profile
@@ -97,17 +97,16 @@ fi
if [ ! "$(command -v vim)" ]; then
alias vim=vi
export EDITOR="vi"
-fi
-
-if [ "$(command -v code)" ] && [ "$(env | grep VSCODE)" ]; then
- export EDITOR="code"
- export VISUAL="code"
-#elif [ "$(command -v hx)" ]; then
-# export EDITOR="hx"
-# export VISUAL="hx"
else
- export EDITOR="vim"
- export VISUAL="vim"
+ # But do we also have neovim?
+ if [ ! "$(command -v nvim)" ]; then
+ export EDITOR="vim"
+ export VISUAL="vim"
+ else
+ export EDITOR="nvim"
+ export VISUAL="nvim"
+ alias vim=nvim
+ fi
fi
# Ensure less always uses the one-page, raw control characters, and no-init settings