aboutsummaryrefslogtreecommitdiff
path: root/profile
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-03-19 19:26:14 +0100
committerKarel Kočí <cynerd@email.cz>2024-03-19 19:26:14 +0100
commitc2dae64e0bf3c8334d715adb851995b3526a1108 (patch)
tree901cfc07dbe9b9c0dbd97e8a7abdfd64fc76fcfe /profile
parente9b06bf8864adfccb61f87fca01835c19fde6e72 (diff)
downloadmyconfigs-c2dae64e0bf3c8334d715adb851995b3526a1108.tar.gz
myconfigs-c2dae64e0bf3c8334d715adb851995b3526a1108.tar.bz2
myconfigs-c2dae64e0bf3c8334d715adb851995b3526a1108.zip
Fixes
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}'