forked from daviwil/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·38 lines (31 loc) · 986 Bytes
/
bootstrap.sh
File metadata and controls
executable file
·38 lines (31 loc) · 986 Bytes
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
#!/bin/bash
# Basic bootstrapping script for daviwil's dotfiles
function bootstrap_mac {
# Is Homebrew installed?
if which brew 2> /dev/null; then
echo "* Homebrew already installed"
else
echo "Can't find Homebrew"
echo "To install it open a Terminal window and type :"
echo /usr/bin/ruby -e \"\$\(curl\ \-fsSL\ https\:\/\/raw\.github\.com\/Homebrew\/homebrew\/go\/install\)\"
fi
}
if [ "$(uname -s)" == "Darwin" ]; then
# Bootstrap Mac OS X
echo ""
echo -e "\033[34mConfiguring for Mac OS X...\033[0m"
echo ""
bootstrap_mac
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
# Bootstrap Linux
# TODO: Ubuntu vs other distro?a
echo "TODO: Bootstrap Linux"
elif [ "$(expr substr $(uname -s) 1 6)" == "CYGWIN" ]; then
# Bootstrap Cygwin
# TODO: Steps
# - Set up apt-cyg
# - Install git, zsh, wget, etc
# - Build tmux
echo "TODO: Bootstrap Cygwin"
fi
# Pull github repo