-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevelopment-utils.sh
More file actions
executable file
·89 lines (76 loc) · 2.38 KB
/
development-utils.sh
File metadata and controls
executable file
·89 lines (76 loc) · 2.38 KB
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
#!/bin/sh
# Install Development Utilities
# Exit immediately if a command exits with a non-zero status
set -e
# Update the user's cached credentials, authenticating the user if necessary
sudo -v
# Store a local variable of the scripts current directory
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "==> Install Xcode command line tools? (Y/n)"
read USER_PROMPT
if [[ "$USER_PROMPT" = 'y' ]] || [[ "$USER_PROMPT" = '' ]]; then
echo "==> Installing Xcode command line tools..."
xcode-select --install
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
echo "==> Xcode command line tools installed."
else
echo "==> Skip installing Xcode command line tools."
fi
echo "==> Install CocoaPods? (Y/n)"
read USER_PROMPT
if [[ "$USER_PROMPT" = 'y' ]] || [[ "$USER_PROMPT" = '' ]]; then
echo "==> Installing CocoaPods..."
sudo gem install cocoapods
echo "==> CocoaPods installed."
else
echo "==> Skip installing CocoaPods."
fi
if ! command -v "brew" > /dev/null 2>&1; then
echo "==> Install Homebrew? (Y/n)"
read USER_PROMPT
if [[ "$USER_PROMPT" = 'y' ]] || [[ "$USER_PROMPT" = '' ]]; then
${DIR}/brew.sh
else
echo "==> Skip installing Homebrew."
fi
fi
echo "==> Install updated GNU utilities? (Y/n)"
read USER_PROMPT
if [[ "$USER_PROMPT" = 'y' ]] || [[ "$USER_PROMPT" = '' ]]; then
${DIR}/gnu-utils.sh
else
echo "==> Skip installing updated GNU utilities."
fi
echo "==> Install development applications? (Y/n)"
read USER_PROMPT
if [[ "$USER_PROMPT" = 'y' ]] || [[ "$USER_PROMPT" = '' ]]; then
echo "==> Installing development applications..."
brew install git
brew cask install \
docker \
gitkraken \
hyper \
intellij-idea \
iterm2 \
postman \
visual-studio-code
else
echo "==> Skip installing development applications."
fi
if ! command -v "node" > /dev/null 2>&1; then
echo "==> Install Node.js? (Y/n)"
read USER_PROMPT
if [[ "$USER_PROMPT" = 'y' ]] || [[ "$USER_PROMPT" = '' ]]; then
${DIR}/nodejs.sh
else
echo "==> Skip installing Node.js."
fi
fi
echo "==> Install Android development environment? (Y/n)"
read USER_PROMPT
if [[ "$USER_PROMPT" = 'y' ]] || [[ "$USER_PROMPT" = '' ]]; then
${DIR}/android-development.sh
else
echo "==> Skip installing Android development environment."
fi
echo "==> Development utilities installed."