From 4de9fd9e30374d6a94978937dcc86d46d096054c Mon Sep 17 00:00:00 2001 From: pauljako Date: Thu, 31 Oct 2024 10:27:48 +0100 Subject: [PATCH] feat(main): added support for the EDITOR variable --- main | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/main b/main index 1c48d82..2009d57 100644 --- a/main +++ b/main @@ -134,6 +134,18 @@ then alias please='su -c env WAYLAND_DISPLAY="$WAYLAND_DISPLAY" XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" DISPLAY="$DISPLAY"' fi # +# set the correct editor +if command -v nvim &> /dev/null +then + export EDITOR="nvim" +elif command -v vim &> /dev/null +then + export EDITOR="vim" +elif command -v nano &> /dev/null +then + export EDITOR="nano" +fi +# # Alias la to ls -la alias la="ls -la" #