Created
November 14, 2021 12:10
-
-
Save limpid-kzonix/eb98b72878ef7108a61f6e6a22fba365 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
/usr/bin/snap run nvim ${@} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CUSTOM_NVIM_PATH=${HOME}/.nvim.run.sh | |
sudo chmod +x "${CUSTOM_NVIM_PATH}" | |
set -u | |
sudo update-alternatives --install /usr/bin/ex ex "${CUSTOM_NVIM_PATH}" 110 | |
sudo update-alternatives --install /usr/bin/vi vi "${CUSTOM_NVIM_PATH}" 110 | |
sudo update-alternatives --install /usr/bin/view view "${CUSTOM_NVIM_PATH}" 110 | |
sudo update-alternatives --install /usr/bin/vim vim "${CUSTOM_NVIM_PATH}" 110 | |
sudo update-alternatives --install /usr/bin/vimdiff vimdiff "${CUSTOM_NVIM_PATH}" 110 | |
sudo update-alternatives --set ex "${CUSTOM_NVIM_PATH}" | |
sudo update-alternatives --set vi "${CUSTOM_NVIM_PATH}" | |
sudo update-alternatives --set view "${CUSTOM_NVIM_PATH}" | |
sudo update-alternatives --set vim "${CUSTOM_NVIM_PATH}" | |
sudo update-alternatives --set vimdiff "${CUSTOM_NVIM_PATH}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment