testing..

This commit is contained in:
pika 2025-05-21 23:12:49 +02:00
parent 2472415a37
commit fa83832fc7

View file

@ -37,8 +37,8 @@
}
# command for executing silent mode only when nessessairy
# ex: _run "Building $PACKAGE" _install neovim
_run() {
# ex: sjhakjhskb "Building $PACKAGE" _install neovim
sjhakjhskb() {
local msg=$1
local cmd="${@:1}"
local err out
@ -101,7 +101,7 @@
if command_exists git; then
sleep 1
if _run git clone --depth=1 https://github.com/neovim/neovim.git; then
if sjhakjhskb git clone --depth=1 https://github.com/neovim/neovim.git; then
check green "Cloned $PACKAGE sources"
line
@ -122,7 +122,7 @@
line
# echo_pkg build "Compiling neovim from source"
spin "Compiling neovim from source"
if _run make CMAKE_BUILD_TYPE=RelWithDebInfo; then
if sjhakjhskb make CMAKE_BUILD_TYPE=RelWithDebInfo; then
check "Compiled $PACKAGE from source"
line
echo_pkg install
@ -138,7 +138,7 @@
if [ -d "$HOME/.config/nvim/" ]; then
# echo_pkg qol "Prefetching neovim setup configuration.."
spin "Prefetching neovim setup configuration.."
if _run nvim --headless +q; then
if sjhakjhskb nvim --headless +q; then
check "Prefetched config"
else
throw "Prefetching config went terribly wrong!"
@ -156,8 +156,8 @@
local err out
local url="https://git.k4li.de/dotfiles/nvim.git"
spin yellow "Cloning pika's standard config"
# if _run install-stuff; then
if _run git clone --recursive --depth=1 $url "$HOME/.config/nvim"; then
# if sjhakjhskb install-stuff; then
if sjhakjhskb git clone --recursive --depth=1 $url "$HOME/.config/nvim"; then
check "Cloned neovim config"
line
pen "${out:-}"
@ -167,7 +167,7 @@
fi
spin bold yellow "Also sourcing config!"
if _run nvim --headless +q; then
if sjhakjhskb nvim --headless +q; then
check "Prefetching config was successfull"
line
pen "${out:-}"
@ -180,8 +180,8 @@
"pika's minimal config")
local url="https://git.k4li.de/dotfiles/nvim-mini.git"
spin yellow "Cloning pika's standard config"
# if _run install-stuff; then
if _run git clone --recursive --depth=1 $url "$HOME/.config/nvim"; then
# if sjhakjhskb install-stuff; then
if sjhakjhskb git clone --recursive --depth=1 $url "$HOME/.config/nvim"; then
check "Cloned neovim config"
line
pen "${out:-}"
@ -191,7 +191,7 @@
fi
spin bold yellow "Also sourcing config!"
if _run nvim --headless +q; then
if sjhakjhskb nvim --headless +q; then
check "Prefetching config was successfull"
line
pen "${out:-}"
@ -249,11 +249,11 @@
esac
done
if $silent; then
_run="run --err err"
else
_run=""
fi
# if $silent; then
# sjhakjhskb="run --err err"
# else
# sjhakjhskb=""
# fi
main </dev/tty
fi