ports/vim: Set EDITOR=vim in .shellrc

This commit is contained in:
Bananymous 2025-05-29 01:20:30 +03:00
parent 4d4fb3b6ec
commit 50024fbf8b
1 changed files with 7 additions and 0 deletions

View File

@ -17,3 +17,10 @@ CONFIGURE_OPTIONS=(
'vim_cv_stat_ignores_slash=yes' 'vim_cv_stat_ignores_slash=yes'
'vim_cv_memmove_handles_overlap=yes' 'vim_cv_memmove_handles_overlap=yes'
) )
install() {
make install "DESTDIR=$BANAN_SYSROOT" || exit 1
shellrc="$BANAN_SYSROOT/home/user/.shellrc"
grep -q 'export EDITOR=' "$shellrc" || echo 'export EDITOR=vim' >> "$shellrc"
}