-
Notifications
You must be signed in to change notification settings - Fork 1
/
automated.sh
executable file
·69 lines (57 loc) · 1.18 KB
/
automated.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
#!/bin/sh
# Automated installation script for Arch Linux. It is assumed that you have
# completed the install process, including installing X and your video drivers
# and setting up your network connection
set -e
cd "$(dirname "$0")"
if [ "$(pwd)" != ~/.dotfiles ]; then
echo "This repo should be installed in ~/.dotfiles" >&2
exit 1
fi
sudo pacman -Sy
# Install aurman manually from the AUR first.
sudo pacman --noconfirm -S --needed base-devel
if ! pacman -Q aurman > /dev/null 2>&1; then
cd /tmp
curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/aurman.tar.gz
tar -xvf aurman.tar.gz
cd aurman
makepkg -si --noconfirm --skippgpcheck
rm -rf /tmp/aurman /tmp/aurman.tar.gz
fi
# Install the packages.
PACKAGES=(
adobe-source-han-sans-jp-fonts
clang
cscope
firefox
git
gnome
google-chrome
gvim
inetutils
man-db
man-pages
mercurial
mutt
noto-fonts-emoji
openssh
pkgfile
python
ripgrep
tmux
ttf-dejavu
ttf-liberation
wl-clipboard
xdg-utils
zsh
)
aurman --noconfirm -S --needed "${PACKAGES[@]}"
# Post-install stuff.
sudo pkgfile --update
chsh -s "$(which zsh)"
if [ $# -gt 0 ]; then
~/.dotfiles/install.sh "$@"
else
~/.dotfiles/install.sh -a
fi