-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
74 lines (58 loc) · 1.93 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE}")";
git pull origin master;
function doIt() {
source ./_install/brew.sh;
read -p "Would you like to put on my Mac Dock (y/n) " -n 1;
echo "";
if [[ $REPLY =~ ^[Yy]$ ]]; then
source ./macOS/dock.sh;
fi;
read -p "Do you want to use my zsh and oh-my-zsh settings? (y/n) " -n 1;
if [[ $REPLY =~ ^[Yy]$ ]]; then
source ./_install/zsh.sh
fi;
read -p "Do you want to use Golang? (y/n) " -n 1;
if [[ $REPLY =~ ^[Yy]$ ]]; then
source ./_install/golang.sh
fi;
read -p "Do you want to use Rust? (y/n) " -n 1;
if [[ $REPLY =~ ^[Yy]$ ]]; then
source ./_install/rust.sh
fi;
read -p "Do you want to use asdf? (y/n) " -n 1;
if [[ $REPLY =~ ^[Yy]$ ]]; then
source ./asdf/plugins.sh;
fi;
read -p "Would you like to use Mackup? (Keep your application settings in sync (OS X/Linux). https://github.com/lra/mackup) (y/n)" -n 1;
if [[ $REPLY =~ ^[Yy]$ ]]; then
source ./_install/mackup.sh
fi;
read -p "Do you want to use Vim and NeoVim? (y/n) " -n 1;
if [[ $REPLY =~ ^[Yy]$ ]]; then
source ./_install/nvim.sh
fi;
read -p "Do you want to have my Development/Project folder structure? (y/n) " -n 1;
if [[ $REPLY =~ ^[Yy]$ ]]; then
source ./macOS/project-folder-structure.sh
fi;
source ./_install/git.sh
source ./macOS/settings.sh;
echo ""
echo "Set your user tokens as environment variables, such as ~/.secrets"
echo "See the README for examples."
read -p "Do you want to restart your Mac (This is recommended now)? (y/n) " -n 1;
if [[ $REPLY =~ ^[Yy]$ ]]; then
sudo reboot
fi;
}
if [ "$1" == "--force" -o "$1" == "-f" ]; then
doIt;
else
read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1;
echo "";
if [[ $REPLY =~ ^[Yy]$ ]]; then
doIt;
fi;
fi;
unset doIt;