dotfiles/modules/50-devtools.sh
Martin Büchler 088a46cced refactor(packages): optimize package installation logic to check for existing packages
refactor(shell): enhance TTY keyboard layout setup with existing keymap check
refactor(browsers): improve browser installation script to avoid reinstalling existing packages
refactor(devtools): streamline development tools installation by checking for already installed packages
2025-08-14 22:53:52 +02:00

34 lines
539 B
Bash
Executable File

#!/usr/bin/env bash
# Install development tools and utilities
DEVTOOLS_PACKAGES=(
git
python
nodejs
npm
docker
jq
ripgrep
fd
btop
htop
lazygit
visual-studio-code-bin
opencode
)
to_install=()
for pkg in "${DEVTOOLS_PACKAGES[@]}"; do
if ! paru -Q "$pkg" &>/dev/null; then
to_install+=("$pkg")
fi
done
if [ "${#to_install[@]}" -gt 0 ]; then
paru -S --noconfirm "${to_install[@]}"
echo "Development tools installed."
else
echo "All development tools already installed."
fi