nvim appimage installer

This commit is contained in:
Christoph J. Scherr 2023-06-18 15:33:11 +02:00
parent fe8774cd17
commit 9e44341ec0
Signed by: PlexSheep
GPG Key ID: 25B4ACF7D88186CC
1 changed files with 16 additions and 0 deletions

16
nvim-appimage.sh Normal file
View File

@ -0,0 +1,16 @@
#!/bin/bash
mkdir -p /tmp/nvim-install-appimage
cd /tmp/nvim-install-appimage
wget 'https://github.com/neovim/neovim/releases/download/stable/nvim.appimage'
chmod +x nvim.appimage
cp nvim.appimage /usr/local/bin
# install alternatives
CUSTOM_NVIM_PATH=/usr/local/bin/nvim.appimage
#update-alternatives --remove ex "${CUSTOM_NVIM_PATH}"
#update-alternatives --remove vi "${CUSTOM_NVIM_PATH}"
#update-alternatives --remove view "${CUSTOM_NVIM_PATH}"
#update-alternatives --remove vim "${CUSTOM_NVIM_PATH}"
#update-alternatives --remove vimdiff "${CUSTOM_NVIM_PATH}"
update-alternatives --install /usr/bin/nvim nvim "${CUSTOM_NVIM_PATH}" 110