mirror of
https://github.com/neovim/neovim.git
synced 2026-03-28 03:12:00 +00:00
Problem: nvim is not added to the system alternatives index when installed via the .deb package, requiring users to explicitly invoke nvim rather than use 'vi' or 'vim' alternatives. Solution: Invoke update-alternatives in CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA steps. Co-authored-by: Mark Landis <anonymouspage@limsei.com>
10 lines
281 B
Bash
Executable File
10 lines
281 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# Register nvim as an alternative for vi and vim, view, editor
|
|
update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60
|
|
update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60
|
|
update-alternatives --install /usr/bin/view view /usr/bin/nvim 60
|
|
|
|
exit 0
|