From c2dae64e0bf3c8334d715adb851995b3526a1108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 19 Mar 2024 19:26:14 +0100 Subject: Fixes --- profile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'profile') 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}' -- cgit v1.2.3