feat(bashrc): EDITOR update and PAGER

This commit is contained in:
lohhiiccc 2026-07-04 17:48:49 +02:00
parent 0a596c5ad3
commit 49e51f8004

View file

@ -2,6 +2,13 @@
export PATH=$HOME/.local/share/bin/:$PATH export PATH=$HOME/.local/share/bin/:$PATH
if which vim >/dev/null 2>&1; then if which less; then
export EDITOR=vim export PAGER=less
fi fi
for editor in "vim" "nvim" "vi" "nano" "ed"; do
if which $editor >/dev/null 2>&1; then
export EDITOR=$editor
break
fi
done