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