-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbootstrap.sh
executable file
·50 lines (41 loc) · 1.24 KB
/
bootstrap.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
#!/usr/bin/env bash
_installAptFast() {
echo "... Installing apt-fast ..."
sudo add-apt-repository -y ppa:apt-fast/stable
sudo apt-get update -y &&
sudo DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y apt-fast
}
_installEssentials() {
echo "... Installing Essential Packages ..."
sudo apt-fast install --no-install-recommends -y \
python3 python3-pip \
g++ build-essential \
gawk xclip wget curl exuberant-ctags ripgrep jq net-tools rename
}
_grantPermissions() {
# make all sh file executable
find . -type f -iname "*.sh" -exec chmod +x {} \;
}
_setupGlobal() {
echo "... Setting up global config ..."
# make python3 the default python. NOTE: only do this on ubuntu > 20.04
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
}
_installTerminalBundle() {
echo "... Installing Terminal Bundle ..."
./install-profiles.sh terminal
}
_cleanup() {
echo "... Cleaning up ..."
sudo apt-get autoremove
}
install() {
_installAptFast
_installEssentials
_grantPermissions
# _setupGlobal
# _installTerminalBundle
_cleanup
}
install