feat(main): added support for the EDITOR variable

This commit is contained in:
Paul Fey 2024-10-31 10:27:48 +01:00
parent 435d1623b8
commit 4de9fd9e30

12
main
View file

@ -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"
#