Last active
February 12, 2018 19:40
-
-
Save austinkregel/ecbfc5b1361af5fe9450fb32950b935f to your computer and use it in GitHub Desktop.
This is just a helper script for my co-workers to quickly setup their new macs.
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
#!/bin/bash | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install bash-git-prompt | |
cat <<EOT >> ~/.bash_profile | |
if [ -f "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh" ]; then | |
__GIT_PROMPT_DIR=$(brew --prefix)/opt/bash-git-prompt/share | |
source "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh" | |
fi | |
if [ -f ~/.bashrc]; then | |
source ~/.bashrc | |
fi | |
export PATH=$PATH:~/.composer/vendor/bin | |
EOT | |
brew install homebrew/php/php72 | |
brew install homebrew/php/php72-geoip | |
brew install homebrew/php/php72-gmagick | |
brew install homebrew/php/php72-gmp | |
brew install homebrew/php/php72-http | |
brew install homebrew/php/php72-zip | |
brew install homebrew/php/php72-intl | |
brew install homebrew/php/php72-memcached | |
brew install homebrew/php/php72-meminfo | |
brew install homebrew/php/php72-mongodb | |
brew install homebrew/php/php72-pdo-pgsql | |
brew install homebrew/php/php72-pspell | |
brew install homebrew/php/php72-redis | |
brew install homebrew/php/php72-snmp | |
brew install homebrew/php/php72-ssh2 | |
brew install homebrew/php/php72-tidy | |
brew install homebrew/php/php72-acpu | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |
php composer-setup.php | |
php -r "unlink('composer-setup.php');" | |
mv composer.phar /usr/local/bin/composer | |
composer global require laravel/installer | |
composer global require laravel/valet | |
export PATH=$PATH:~/.composer/vendor/bin | |
valet install | |
brew install mysql | |
brew install redis | |
brew install memcached | |
ssh-keygen -t RSA -b 8192 -f $HOME/.ssh/github | |
cat <<EOT >> $HOME/.ssh/config | |
Host github.com | |
User git | |
IdentitiesOnly yes | |
HostName github.com | |
IdentityFile $HOME/.ssh/github | |
EOT | |
# Self update for composer, always useful. | |
echo '0 0 * * * /usr/local/bin/composer self-update' | crontab - | |
echo "=============================================" | |
echo '' | |
echo "We have successfully installed brew, PHP7.2, mysql, redis, Laravel Valet, Laravel installer, memcached, and composer." | |
echo '' | |
echo 'We also generated an ssh key for you to use with github.' | |
echo '' | |
echo 'Please reboot your system to ensure everything is started properly | |
echo '' | |
echo "=============================================" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment