-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·51 lines (42 loc) · 1022 Bytes
/
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
48
49
50
51
#!/usr/bin/env bash
install_git() {
#verify if git is a executable and is in the path, otherwise install
[ ! -x "$(command -v git)" ] && sudo apt-get -y install git || echo "git installed"
}
create_code_dir() {
if [ ! -d "$CODE_DIR" ]; then
echo "creating code dir"
mkdir "$CODE_DIR"
else
echo "code dir already exists"
fi
}
download_dotfiles() {
local repo_dir=$CODE_DIR"dotfiles"
if [ ! -d "$repo_dir" ]; then
git clone --depth 1 https://github.com/roadhouse/dotfiles.git
else
echo "dotfiles dir already exists"
fi
}
main() {
echo "RoadHouse Bootstrap Script"
export CODE_DIR="$HOME/code/"
sudo apt-get -q update
install_git
create_code_dir
cd "$CODE_DIR" || exit
download_dotfiles
cd "dotfiles" || exit
source "helpers.sh"
install_group "base"
create_symlinks
change_shell_to_zsh
download_powerlevel10k
enable_tap_on_touchpad
install_monoid_patched_font
install_nvim_from_github
echo "Finished system configuration"
}
#running setup
main