added nvim config download and cleanup

This commit is contained in:
2023-10-14 16:11:30 +00:00
parent f34e7c8fac
commit edde0af49a

14
kfg
View File

@@ -425,8 +425,8 @@ function init {
}
function cleanup {
#rm -R "$TMP_PATH"
nop
rm -R "$TMP_PATH"
#nop
}
function apt_install {
@@ -677,6 +677,13 @@ function p_nvim {
res=$(sudo make -C "${TMP_PATH}/neovim" install 2>&1)
log_add "Installed neovim [$(${TMP_PATH}/neovim/build/bin/nvim --version | head -n 1 | grep -oE "v(.*)$")]"
#cd "${TMP_PATH}/neovim/build" && cpack -G DEB && sudo dpkg -i nvim-linux64.deb
# Download config
res=$(git -C "${TMP_PATH}" clone --filter=blob:none --no-checkout --depth 1 --sparse https://git.cbeck.tech/kamu/dotfiles.git "${TMP_PATH}/dotfiles")
res=$(git -C "${TMP_PATH}/dotfiles" sparse-checkout add ".config/nvim")
res=$(git -C "${TMP_PATH}/dotfiles" checkout)
res=$(cp -r "${TMP_PATH}/dotfiles/.config/nvim" ${CONFIG_PATH}/nvim/)
}
function install {
@@ -719,8 +726,7 @@ function install {
esac
done
#cleanup
cleanup
exit 0
}