Browse Source

Ports/vim: Add symlink 'vi' pointing to target 'vim'

This adds a symlink named 'vi' which points to the target 'vim'. It's
useful in scenarios where a third-party application might rely on 'vi'.
Kenneth Myhra 3 years ago
parent
commit
f848d65fd9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Ports/vim/package.sh

+ 4 - 0
Ports/vim/package.sh

@@ -15,3 +15,7 @@ export vim_cv_tgetent=zero
 export vim_cv_terminfo=yes
 export vim_cv_toupper_broken=no
 export vim_cv_tty_group=world
+
+post_install() {
+    run ln -sf vim "${SERENITY_INSTALL_ROOT}/usr/local/bin/vi"
+}