ArchSetupScripts/cli.sh

39 lines
721 B
Bash
Raw Normal View History

2024-11-10 13:58:16 +00:00
#!/bin/bash
main(){
run_cli_install;
}
_install_cli(){
local name=$1;
bash ./warn.sh "Installing cli tool: $name" # v---- this skips already installed stuff
if (sudo pacman -S --needed "$name" --noconfirm >>/dev/null); then
bash ./success.sh "Successfully installed cli tool: $name"
else
bash ./error.sh "Failed: $name"
fi
}
run_cli_install(){
echo "########################### Cli Tools #######################"
local cli_tools=(
"git"
"vim"
"helix"
"typescript"
"typescript-language-server"
"bash-language-server"
"mingw-w64-x86_64-clang" # <-- expect failure
"flatpak"
"fish" # <-- shell
2024-11-10 17:29:14 +00:00
"less"
2024-11-10 13:58:16 +00:00
)
for i in "${cli_tools[@]}"; do
_install_cli "$i";
done;
}
main;