27 lines
449 B
Bash
Executable File
27 lines
449 B
Bash
Executable File
#!/bin/bash
|
|
|
|
declare -A TOOLS=(
|
|
[batcat]=bat
|
|
[exa]=exa
|
|
[fdfind]=fd-find
|
|
[gron]=gron
|
|
[kubecolor]=kubecolor
|
|
[readelf]=binutils
|
|
[rg]=ripgrep
|
|
[thefuck]=thefuck
|
|
)
|
|
|
|
PACKAGES=()
|
|
|
|
for tool in ${!TOOLS[@]}; do
|
|
if [[ ! -x "$(command -v $tool)" ]]; then
|
|
PACKAGES+=("${TOOLS[$tool]}")
|
|
fi
|
|
done
|
|
|
|
if [[ ${#PACKAGES[@]} > 0 ]]; then
|
|
echo sudo apt install $(printf " %s" "${PACKAGES[@]}")
|
|
else
|
|
echo All needed tools already installed.
|
|
fi
|