zsh/.zsh/.installs.zsh
2025-05-11 12:42:45 +02:00

50 lines
756 B
Bash

packages=(
"colorscript"
"docker"
"forgejo-runner"
"ghostty"
"hyprland"
"neovide"
"neovim"
"pkgui"
"xmrig"
"yazi"
"ytgo"
"zellij"
)
_help() {
echo "Just use _install 'packagename' to install some packages"
echo "Available packages are:"
echo "${packages[@]}"
}
_install_func() {
curl -fsSL "https://git.k4li.de/scripts/installs/raw/branch/main/${1}.sh" | { bash || sh }
}
_check() {
if ! command_exists curl; then
echo_error "curl was not found on this system!"
echo_error "exiting now!"
exit 1
fi
}
_install() {
case "$1" in
--help | -h)
_help
;;
nvim)
if _check; then
_install_func "neovim"
fi
;;
*)
if _check; then
_install_func "$1"
fi
;;
esac
}