-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·58 lines (48 loc) · 1.45 KB
/
install.sh
File metadata and controls
executable file
·58 lines (48 loc) · 1.45 KB
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
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
# vim: set ft=sh et ts=4 sw=4 sts=4:
# ----------------------------------------------------------------------------#
# _ _ _ _ _
# (_)_ __ ___| |_ __ _| | | ___| |__
# | | '_ \/ __| __/ _` | | | / __| '_ \
# | | | | \__ \ || (_| | | |_\__ \ | | |
# |_|_| |_|___/\__\__,_|_|_(_)___/_| |_|
#
# Author: Serhat Teker <me@serhatteker.com>
# Source: https://github.com/SerhatTeker/dotfiles
#
# Install dotfiles
# ----------------------------------------------------------------------------#
# Bash safeties: exit on error, no unset variables, pipelines can't hide errors
set -o errexit
set -o pipefail
# Locate the root directory
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
# shellcheck disable=1091
source "${ROOT}/dotfiles/install/common.sh"
main_scripts() {
# Run Install scripts
declare -a installs=(
"defaults"
"brew"
"link"
"zsh"
"tmux"
"languages/python"
"languages/rust"
# TODO: Improve and test
# "languages/node"
"nvchad"
"fonts"
)
for install in "${installs[@]}"; do
bash "${ROOT}/install/${install}.sh"
done
}
main() {
info "Install started"
sudo -v # Get sudo beforehand
main_scripts
success "Finished installation. Go build something!"
}
main "${@}"