summaryrefslogtreecommitdiff
path: root/Ports/vim
diff options
context:
space:
mode:
authorKenneth Myhra <kennethmyhra@gmail.com>2021-10-31 19:37:06 +0100
committerAndreas Kling <kling@serenityos.org>2021-10-31 21:09:49 +0100
commitf848d65fd9ee372b047cb86aa8f8168dcdcc7e69 (patch)
tree3bae4b245330031fe907f439762628520b718870 /Ports/vim
parent248ff8e971c6bee821a3ec1b86fa23ed7b580f44 (diff)
downloadserenity-f848d65fd9ee372b047cb86aa8f8168dcdcc7e69.zip
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'.
Diffstat (limited to 'Ports/vim')
-rwxr-xr-xPorts/vim/package.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/Ports/vim/package.sh b/Ports/vim/package.sh
index 9e91d2fb93..fb2cd7ee3d 100755
--- a/Ports/vim/package.sh
+++ b/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"
+}