diff --git a/.config/yadm/bootstrap.d/check-installed-tools b/.config/yadm/bootstrap.d/check-installed-tools index ebfa8da..8247ec4 100755 --- a/.config/yadm/bootstrap.d/check-installed-tools +++ b/.config/yadm/bootstrap.d/check-installed-tools @@ -1,9 +1,17 @@ #!/bin/bash -declare -A TOOLS -TOOLS+=( ["batcat"]=bat ["exa"]=exa ["fdfind"]=fd-find ["glow"]=glow ["readelf"]=binutils ["rg"]=ripgrep ["thefuck"]=thefuck ) +declare -A TOOLS=( + [batcat]=bat + [exa]=exa + [fdfind]=fd-find + [gron]=gron + [kubecolor]=kubecolor + [readelf]=binutils + [rg]=ripgrep + [thefuck]=thefuck +) -declare -A PACKAGES +PACKAGES=() for tool in ${!TOOLS[@]}; do if [[ ! -x "$(command -v $tool)" ]]; then @@ -12,7 +20,7 @@ for tool in ${!TOOLS[@]}; do done if [[ ${#PACKAGES[@]} > 0 ]]; then - echo sudo apt install $(printf " %s" "${!PACKAGES[@]}") + echo sudo apt install $(printf " %s" "${PACKAGES[@]}") else echo All needed tools already installed. fi