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,12 +207,14 @@
esac esac
fi fi
spin bold yellow "Also sourcing config!" if [ -d "$HOME/.config/nvim/" ]; then
if run --err err nvim --headless +q; then spin bold yellow "Also sourcing config!"
check "Prefetching config was successfull" if run --err err nvim --headless +q; then
else check "Prefetching config was successfull"
throw "Prefetching has failed hard!" else
pen "${err:-}" throw "Prefetching has failed hard!"
pen "${err:-}"
fi
fi fi
} }