diff --git a/ports/vim/build.sh b/ports/vim/build.sh index d54b56b45f..9ba70af9fc 100755 --- a/ports/vim/build.sh +++ b/ports/vim/build.sh @@ -17,3 +17,10 @@ CONFIGURE_OPTIONS=( 'vim_cv_stat_ignores_slash=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" +}