-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackages.sh
executable file
·170 lines (148 loc) · 1.99 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
#!/usr/bin/env bash
set -e
as_root=''
[ $UID = 0 ] || as_root='sudo'
info() {
printf "$(tput bold)$(tput setaf 4) -> $1$(tput sgr0)\n"
}
pacman_packages=(
# arch
dkms
linux-headers
# programming
ctags
clang
make
cmake
git
tig
gcc
llvm
emscripten
#languages
go
delve
#lua
perl
python
python2
dmd
gradle
java-environment
# text editors
emacs # search for spacemacs
vim
neovim
# terminal
alacritty
kitty
rxvt-unicode
tmux
zsh
# window managers / desktop
xorg
xorg-xinit
i3-gaps
i3status
sway
swaylock
swayidle
dmenu
rofi
nitrogen
compton
# virtualization / containerization
kubectl
helm
docker
docker-machine
docker-compose
virtualbox
virtualbox-guest-iso
virtualbox-host-modules-arch
qemu
qemu-arch-extra
kubectx
kubie
# applications / utils
gdu
htop
nvtop
btop
glances
devtools
ranger
w3m
mutt
fzf
bat
asciinema
inetutils
net-tools
nmon
openssh
pulsemixer
vlc
firefox
the_silver_searcher
ripgrep
alsa-utils
slop
maim
tesseract
exfat-utils
networkmanager
aws-cli
aws-iam-authenticator
terraform
dhclient
tree
hub
nmap
firejail
reflector
jq
yq
xclip
)
aur_packages=(
asdf-vm
# text editors
vscodium
nvim-packer-git
# window managers / utils
polybar
# applications / utils
insomnia-bin
postman-bin
ngrok
google-chrome
barrier
fswatch
)
install_using_pacman() {
packages=("$@")
to_install=()
for pack in "${packages[@]}"; do
pacman -Qq $pack > /dev/null 2>&1 || to_install+=("$pack")
done
if [ "${#to_install}" -gt 0 ]; then
$as_root pacman -Sy "${to_install[@]}"
else
info "Done installing all packages from pacman"
fi
}
install_using_yay() {
packages=("$@")
to_install=()
for pack in "${packages[@]}"; do
pacman -Qq $pack > /dev/null 2>&1 || to_install+=("$pack")
done
if [ "${#to_install}" -gt 0 ]; then
yay -Sy "${to_install[@]}"
else
info "Done installing all packages from aur"
fi
}
install_using_pacman "${pacman_packages[@]}"
install_using_yay "${aur_packages[@]}"