diff --git a/kfg b/kfg index f10c9b2..d2df05f 100755 --- a/kfg +++ b/kfg @@ -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 }