-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackages.sh
executable file
·82 lines (72 loc) · 1.12 KB
/
packages.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash
echo ""
echo "Checking for installed packages..."
commands=(
# Core
"git"
"curl"
"wget"
"tar"
"zip"
"unzip"
# Core terminal
"zsh"
"nvim"
"tmux"
"alacritty"
"starship"
"rofi"
"greenclip"
# Terminal tools
"logo-ls"
"rg"
"difft"
"bat"
"dust"
"duf"
"htop"
"tree"
"neofetch"
"jq"
# Development
"gcc"
"g++"
"make"
"cmake"
"autoconf"
"docker"
"python3"
"conda"
"node"
# Misc
"google-chrome"
"vlc"
"fzf"
"xdotool"
"xclip"
"stew"
"parallel"
)
installed=()
missing=()
for command in "${commands[@]}"; do
if which "$command" >/dev/null 2>&1; then
installed+=("$command")
else
missing+=("$command")
fi
done
for command in "${installed[@]}"; do
echo -e "\e[32m✔\e[0m $command"
done
for command in "${missing[@]}"; do
echo -e "\e[31m✖\e[0m $command"
done
if [ ${#missing[@]} -gt 0 ]; then
echo ""
echo "Maybe try running:"
echo "sudo apt install ${missing[@]} -y"
else
echo ""
echo "All set!"
fi