-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.sh
executable file
·58 lines (49 loc) · 1.61 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
#!/bin/bash
echo "installing dotfiles"
if [ "$(uname)" == "Darwin" ]; then
echo "running on OSX"
echo ""
echo "Install Base16? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
echo "Installing Base16 colourfullness"
git clone https://github.com/stephenlaughton/base16-shell.git ~/.config/base16-shell
fi
echo ""
echo "Install homebrew? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
echo "installing homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "brewing all the things"
source install/brew.sh
fi
echo ""
echo "Install zinit? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
echo "installing zinit for fancy zsh"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/zdharma/zinit/master/doc/install.sh)"
fi
echo ""
echo "Install fisher? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
echo "installing fisher for fancy fish"
curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish
fi
echo ""
echo "Link dotfiles to ~ directory? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
echo "Linking!"
source install/link.sh
fi
echo ""
echo "Souppedup OSX? (y/n)"
read -r response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
echo "updating OSX settings"
source installosx.sh
fi
fi