Last active
January 10, 2018 15:39
-
-
Save lucasscariot/a3953bbf8a393c0e90c9337f927bc23c to your computer and use it in GitHub Desktop.
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
if ! command -v brew $> /dev/null ; then | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
else | |
echo "Brew already installed." | |
fi | |
function brewInstall() { | |
if command -v $1 $> /dev/null ; then | |
echo "$1 Already installed." | |
return 1 | |
fi | |
brew install $1 | |
if [ $? -ne 0 ]; then | |
echo "$1 Installation failed." | |
exit | |
fi | |
} | |
brew update | |
brewInstall wget | |
brewInstall node | |
brewInstall vim | |
brewInstall zsh | |
wget https://download.docker.com/mac/stable/Docker.dmg | |
hdutil mount Docker.dmg | |
cp -R "/Volumes/Docker/docker.app" /Application | |
hdiutil detach /Volumes/Docker | |
open /Applications/docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment