-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·47 lines (45 loc) · 1.25 KB
/
install.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
#!/bin/bash
set -e
DOTFILES_HOME=$(pwd)
export DOTFILES_HOME
if [ "$(uname)" = 'Darwin' ]; then
missing_packages=$(comm -13 <(cat <(brew ls --formula) <(brew ls --cask) | sort) <(sort mac/packages))
if [ -n "$missing_packages" ]; then
brew install "$missing_packages"
fi
elif grep -qF Raspbian /etc/issue; then
sudo apt-get update
sudo apt-get upgrade
missing_packages=$(comm -13 <(dpkg-query -f '${Package}\n' -W| sort) <(sort raspbian/packages))
sudo apt-get install "$missing_packages"
git/setup.sh
elif grep -qF Debian /etc/issue; then
debian/install.sh
else # Assume Arch or derivatives
sudo pacman -Syu
missing_packages=$(comm -13 <(pacman -Qq | sort) <(sort arch/packages))
if ! pacman -Qq yay > /dev/null; then
echo "yay block"
sudo pacman -S --needed git base-devel
mkdir -p "$HOME/src"
[[ -d $HOME/src/yay ]] || git clone https://aur.archlinux.org/yay.git ~/src/yay
cd "$HOME/src/yay" || exit
makepkg -si
fi
if [ -n "$missing_packages" ]; then
for pkg in $missing_packages; do
yay -S --noconfirm "$pkg"
done
fi
waybar/setup.sh
river/setup.sh
foot/setup.sh
git/setup.sh
nag_runner/setup.sh
amfora/setup.sh
font/setup.sh
tidy/setup.sh
tmux/setup.sh
fi
vim/setup.sh
zsh/setup.sh