-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·71 lines (54 loc) · 1.33 KB
/
setup.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
70
71
#!/bin/bash
set -u # treat unset variables as error
# Variables
SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
BASH_SCRIPTS_DIR="${SOURCE_DIR}/bash_scripts"
RESOUCES_DIR="${SOURCE_DIR}/resources"
# Check if the OS is Linux
if [[ "$(uname)" = "Linux" ]]; then
SETUP_ON_LINUX=1
fi
# Load other files
source "${BASH_SCRIPTS_DIR}/utils.sh"
if should_run BASH_MISC; then
source "${BASH_SCRIPTS_DIR}/bash_misc.sh"
fi
if should_run HOMEBREW; then
source "${BASH_SCRIPTS_DIR}/homebrew.sh"
fi
if should_run VIM; then
source "${BASH_SCRIPTS_DIR}/vim.sh"
fi
if should_run FZF; then
source "${BASH_SCRIPTS_DIR}/fzf.sh"
fi
if should_run TREE; then
source "${BASH_SCRIPTS_DIR}/tree.sh"
fi
if should_run GIT; then
source "${BASH_SCRIPTS_DIR}/git.sh"
fi
if should_run NNN; then
source "${BASH_SCRIPTS_DIR}/nnn.sh"
fi
if should_run LATEX; then
source "${BASH_SCRIPTS_DIR}/latex.sh"
fi
if should_run PYTHON; then
source "${BASH_SCRIPTS_DIR}/python.sh"
fi
if should_run NODEJS; then
source "${BASH_SCRIPTS_DIR}/nodejs.sh"
fi
if should_run JAVA; then
source "${BASH_SCRIPTS_DIR}/java.sh"
fi
if should_run RUST; then
source "${BASH_SCRIPTS_DIR}/rust.sh"
fi
if should_run BOOST; then
source "${BASH_SCRIPTS_DIR}/boost.sh"
fi
if should_run PYTHON_PACKAGES; then
source "${BASH_SCRIPTS_DIR}/python_packages.sh"
fi