forked from donnemartin/dev-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.dots
executable file
·132 lines (125 loc) · 5.26 KB
/
.dots
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
122
123
124
125
126
127
128
129
130
131
132
#!/usr/bin/env bash
function runDots() {
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until the script has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Run sections based on command line arguments
for ARG in "$@"
do
if [ $ARG == "bootstrap" ] || [ $ARG == "all" ]; then
echo ""
echo "------------------------------"
echo "Syncing the dev-setup repo to your local machine."
echo "------------------------------"
echo ""
cd ~/bootstrap && curl -#L https://github.com/buddyup/dev-setup/tarball/master | tar -xzv --strip-components 1 --exclude={README.md,LICENSE}
fi
if [ $ARG == "osxprep" ] || [ $ARG == "all" ]; then
# Run the osxprep.sh Script
echo ""
echo "------------------------------"
echo "Updating OSX and installing Xcode command line tools"
echo "------------------------------"
echo ""
./osxprep.sh
fi
if [ $ARG == "brew" ] || [ $ARG == "all" ]; then
# Run the brew.sh Script
# For a full listing of installed formulae and apps, refer to
# the commented brew.sh source file directly and tweak it to
# suit your needs.
echo ""
echo "------------------------------"
echo "Installing Homebrew and some common formulas and apps."
echo "This might a while to complete. Hang in there. :)"
echo "------------------------------"
echo ""
./brew.sh
fi
# if [ $ARG == "osx" ] || [ $ARG == "all" ]; then
# # Run the osx.sh Script
# # I strongly suggest you read through the commented osx.sh
# # source file and tweak any settings based on your personal
# # preferences. The script defaults are intended for you to
# # customize. For example, if you are not running an SSD you
# # might want to change some of the settings listed in the
# # SSD section.
# echo ""
# echo "------------------------------"
# echo "Setting sensible OSX defaults."
# echo "------------------------------"
# echo ""
# ./osx.sh
# fi
# if [ $ARG == "pydata" ] || [ $ARG == "all" ]; then
# # Run the pydata.sh Script
# echo "------------------------------"
# echo "Setting up Python data development environment."
# echo "------------------------------"
# echo ""
# ./pydata.sh
# fi
# if [ $ARG == "aws" ] || [ $ARG == "all" ]; then
# # Run the aws.sh Script
# echo "------------------------------"
# echo "Setting up AWS development environment."
# echo "------------------------------"
# echo ""
# ./aws.sh
# fi
# if [ $ARG == "datastores" ] || [ $ARG == "all" ]; then
# # Run the datastores.sh Script
# echo "------------------------------"
# echo "Setting up data stores."
# echo "------------------------------"
# echo ""
# ./datastores.sh
# fi
# if [ $ARG == "webdev" ] || [ $ARG == "all" ]; then
# # Run the webdev.sh Script
# echo "------------------------------"
# echo "Setting up JavaScript web development environment."
# echo "------------------------------"
# echo ""
# #./webdev.sh # coming soon
# fi
if [ $ARG == "android" ] || [ $ARG == "all" ]; then
# Run the android.sh Script
echo "------------------------------"
echo "Setting up Android development environment."
echo "------------------------------"
echo ""
./android.sh
fi
if [ $ARG == "docker" ] || [ $ARG == "all" ]; then
# Run the android.sh Script
echo "------------------------------"
echo "Setting up Docker-osx-dev."
echo "------------------------------"
echo ""
curl -o /usr/local/bin/docker-osx-dev https://raw.githubusercontent.com/brikis98/docker-osx-dev/master/src/docker-osx-dev
chmod +x /usr/local/bin/docker-osx-dev
docker-osx-dev install
dewey upgrade
# Set up docker login
echo "Time to log in to docker. Please enter your docker hub credentials below."
if ! cat ~/.docker/config.json | grep "email"; then
docker login
fi
fi
if [ $ARG == "codebases" ] || [ $ARG == "all" ]; then
# Run the codebases.sh Script
echo "------------------------------"
echo "Setting up BuddyUp Codebases."
echo "------------------------------"
echo ""
./codebases.sh
fi
done
echo "------------------------------"
echo "Completed running .dots, restart your computer to ensure all updates take effect"
echo "------------------------------"
}
runDots $@
unset runDots;