forked from donnemartin/dev-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added android installation script and instructions.
- Loading branch information
1 parent
d5e1804
commit 59cac70
Showing
3 changed files
with
101 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Install command-line tools using Homebrew. | ||
|
||
# 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 & | ||
|
||
# Check for Homebrew, | ||
# Install if we don't have it | ||
if test ! $(which brew); then | ||
echo "Installing homebrew..." | ||
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | ||
fi | ||
|
||
# Make sure we’re using the latest Homebrew. | ||
brew update | ||
|
||
# Install Cask | ||
brew install caskroom/cask/brew-cask | ||
|
||
brew cask install --appdir="~/Applications" java | ||
brew cask install --appdir="~/Applications" intellij-idea-ce | ||
brew cask install --appdir="~/Applications" android-studio | ||
|
||
brew install android-sdk | ||
|
||
# Remove outdated versions from the cellar. | ||
brew cleanup |