Consolidate _src.posix into _home

This commit is contained in:
Lockszmith 2025-04-18 13:55:54 -04:00
parent bfdc7f4c1d
commit f16c2e61b3
279 changed files with 2134 additions and 2190 deletions

View file

@ -1 +0,0 @@
../../../_src.posix/private_dot_config/sz.env/555_fix-nvim.env

View file

@ -0,0 +1,24 @@
#!/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
# vim: set ft=sh expandtab tabstop=4 shiftwidth=4: