aboutsummaryrefslogtreecommitdiff
path: root/profile
diff options
context:
space:
mode:
Diffstat (limited to 'profile')
-rw-r--r--profile6
1 files changed, 5 insertions, 1 deletions
diff --git a/profile b/profile
index 5fa0d56..0b185a7 100644
--- a/profile
+++ b/profile
@@ -1,6 +1,10 @@
# First global user configuration
export PATH="$HOME/.local/bin:$PATH"
-export EDITOR=vim
+if command -v nvim >/dev/null; then
+ export EDITOR=nvim
+else
+ export EDITOR=vim
+fi
# ct-ng configuration
export CT_PREFIX_DIR='~/.local/${CT_TARGET}'