-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·122 lines (92 loc) · 2.19 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#!/usr/bin/env bash
DOTFILES_DIR=$HOME/dotfiles
set -e
abort() {
printf "%s\n" "$@" >&2
exit 1
}
promptYn() {
while true; do
read -p "$1 [yN] " yn
case $yn in
[Yy]* ) return 0;;
[Nn]* ) return 1;;
* ) echo "Please answer yes or no.";;
esac
done
}
if [[ ! -n $(xcode-select -p 1>/dev/null; echo $?) ]]; then
# echo "Dev Tools is not installed"
abort """
Dev tools is not installed.
Run `xcode-select --install`
or download from Apple's website:
Download XCode from Apple's Website: https://developer.apple.com/xcode/
"""
fi
echo "Cloning dotfiles repo"
echo ""
if promptYn "Clone Repo?"; then
rm -rf $DOTFILES_DIR
git clone --progress https://github.com/colevoss/dotfiles.git $DOTFILES_DIR
fi
if promptYn "Install Homebrew?"; then
$DOTFILES_DIR/installs/brew.sh
fi
if promptYn "Install Utils?"; then
$DOTFILES_DIR/installs/utils.sh
fi
if promptYn "Install Fonts?"; then
$DOTFILES_DIR/installs/fonts.sh
fi
if promptYn "Install FZF?"; then
$DOTFILES_DIR/installs/fzf.sh
fi
if promptYn "Install Git Delta?"; then
$DOTFILES_DIR/installs/git-delta.sh
fi
if promptYn "Setup ZSH?"; then
$DOTFILES_DIR/installs/setup-zsh.sh
fi
if promptYn "Install kitty?"; then
$DOTFILES_DIR/installs/kitty.sh
fi
if promptYn "Install Tmux?"; then
$DOTFILES_DIR/installs/tmux.sh
fi
if promptYn "Install Starship?"; then
$DOTFILES_DIR/installs/starship.sh
fi
if promptYn "Install Neovim?"; then
$DOTFILES_DIR/installs/neovim.sh
fi
if promptYn "Install Node?"; then
$DOTFILES_DIR/installs/node.sh
fi
if promptYn "Install Go?"; then
$DOTFILES_DIR/installs/go.sh
fi
if promptYn "Install Rust?"; then
$DOTFILES_DIR/installs/rust.sh
fi
if promptYn "Install Python?"; then
$DOTFILES_DIR/installs/python.sh
fi
if promptYn "Install PipEnv?"; then
$DOTFILES_DIR/installs/pipenv.sh
fi
if promptYn "Install Ocaml?"; then
$DOTFILES_DIR/installs/ocaml.sh
fi
if promptYn "Install Terraform?"; then
$DOTFILES_DIR/installs/terraform.sh
fi
if promptYn "Install Docker?"; then
$DOTFILES_DIR/installs/docker.sh
fi
if promptYn "Install VSCode?"; then
$DOTFILES_DIR/installs/vscode.sh
fi
if promptYn "Install Some Apps?"; then
$DOTFILES_DIR/installs/apps.sh
fi