mirror of
https://github.com/neovim/neovim.git
synced 2026-03-27 19:02:02 +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>
11 lines
205 B
Bash
Executable File
11 lines
205 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
if [ "$1" = "remove" ]; then
|
|
update-alternatives --remove vi /usr/bin/nvim
|
|
update-alternatives --remove vim /usr/bin/nvim
|
|
update-alternatives --remove view /usr/bin/nvim
|
|
fi
|
|
|
|
exit 0
|