feat(main): added support for the EDITOR variable
This commit is contained in:
parent
435d1623b8
commit
4de9fd9e30
1 changed files with 12 additions and 0 deletions
12
main
12
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"
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue