#!/usr/bin/env -S bash -c 'echo "Not a user script. source(aka .) only"' if [[ -x "${CUSTOM_NVIM_PATH:-$HOME/.local/bin/nvim}" ]]; then fix_nvim () { CUSTOM_NVIM_PATH="${CUSTOM_NVIM_PATH:-$HOME/.local/bin/nvim}" printf '%s\n' \ "update-alternatives --install /usr/bin/editor editor '${CUSTOM_NVIM_PATH}' 110" \ "update-alternatives --install /usr/bin/edit edit '${CUSTOM_NVIM_PATH}' 110" \ "update-alternatives --install /usr/bin/ex ex '${CUSTOM_NVIM_PATH}' 110" \ "update-alternatives --install /usr/bin/vi vi '${CUSTOM_NVIM_PATH}' 110" \ "update-alternatives --install /usr/bin/view view '${CUSTOM_NVIM_PATH}' 110" \ "update-alternatives --install /usr/bin/vim vim '${CUSTOM_NVIM_PATH}' 110" \ "update-alternatives --install /usr/bin/vimdiff vimdiff '${CUSTOM_NVIM_PATH}' 110" \ "update-alternatives --set editor '${CUSTOM_NVIM_PATH}'" \ "update-alternatives --set edit '${CUSTOM_NVIM_PATH}'" \ "update-alternatives --set ex '${CUSTOM_NVIM_PATH}'" \ "update-alternatives --set vi '${CUSTOM_NVIM_PATH}'" \ "update-alternatives --set view '${CUSTOM_NVIM_PATH}'" \ "update-alternatives --set vim '${CUSTOM_NVIM_PATH}'" \ "update-alternatives --set vimdiff '${CUSTOM_NVIM_PATH}'" } fi