Completing nice looking build script

This commit is contained in:
pika 2025-05-23 16:59:56 +02:00
parent 4e2f3e3d68
commit b1c9ecf661

View file

@ -177,7 +177,7 @@
"pika's minimal config")
local url="https://git.k4li.de/dotfiles/nvim-mini.git"
local err
spin yellow "Cloning pika's standard config"
spin yellow "Cloning pika's mini config"
# if run install-stuff; then
if run --err err git clone --recursive --depth=1 $url "$HOME/.config/nvim"; then
line
@ -192,7 +192,7 @@
local url err
seek url "What is the url for your neovim config?" </dev/tty
spin yellow "Cloning your config!"
spin yellow "Cloning your own config!"
if run --err err git clone --recursive --depth=1 $url "$HOME/.config/nvim"; then
check "Cloned neovim config"
else
@ -207,12 +207,14 @@
esac
fi
spin bold yellow "Also sourcing config!"
if run --err err nvim --headless +q; then
check "Prefetching config was successfull"
else
throw "Prefetching has failed hard!"
pen "${err:-}"
if [ -d "$HOME/.config/nvim/" ]; then
spin bold yellow "Also sourcing config!"
if run --err err nvim --headless +q; then
check "Prefetching config was successfull"
else
throw "Prefetching has failed hard!"
pen "${err:-}"
fi
fi
}