Last active
August 29, 2015 14:01
-
-
Save stevepereira/d2901b2080868baf1164 to your computer and use it in GitHub Desktop.
bash -e "$(curl -fsSL https://gist.githubusercontent.com/stevepereira/d2901b2080868baf1164/raw/bootstrap.sh)"
This file contains hidden or 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
#TODO: replace with: tar xvz < <(curl -L https://github.com/stevepereira/macbook-ansible/archive/master.tar.gz) && ansible-playbook macbook-ansible-master/install.yml -K | |
#https://github.com/revans/bash-it | |
#https://github.com/mathiasbynens/dotfiles | |
# nopasswd sudo: add 'stevepereira ALL=(ALL) NOPASSWD: ALL' to /etc/sudoers | |
# disable smart quotes and smart dashes | |
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false | |
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false | |
# textEdit | |
defaults write com.apple.TextEdit SmartQuotes -bool false | |
defaults write com.apple.TextEdit SmartDashes -bool false | |
# Xcode | |
[ ! $(xcode-select -p) ] && echo "Xcode not installed, installing..." && xcode select --install || echo "Xcode installed already" | |
gcc | |
# bump up key repeat | |
defaults write NSGlobalDomain KeyRepeat -int 10 # normal minimum is 15 (225 ms) | |
defaults write NSGlobalDomain InitialKeyRepeat -int 2 # normal minimum is 2 (30 ms) | |
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms) | |
defaults write -g KeyRepeat -int 2 # normal minimum is 2 (30 ms) | |
# homebrew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/homebrew/go/install)" | |
# homebrew app installs | |
curl -fsSL gist.githubusercontent.com/stevepereira/7755495/raw > Brewfile && brew bundle | |
# set shell to homebrew bash | |
sudo /bin/sh -c "echo $(brew info bash | sed -n 3p | awk '{ print $1 }')/bin/bash >> /etc/shells" | |
chpass -s $(brew info bash | sed -n 3p | awk '{ print $1 }')/bin/bash $USER | |
# prezto | |
#zsh | |
#git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto" | |
#setopt EXTENDED_GLOB | |
#for r in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do ln -s "$r" "${ZDOTDIR:-$HOME}/.${r:t}";done | |
# open dropbox and sync folders (for mackup) | |
echo -ne "Have you synced the Mackup folder to this machine? (y/N) "; read REPLY | |
REPLY=${REPLY:-N} | |
case $REPLY in | |
Yes|Y|y ) | |
echo -e "Continuing" | |
break | |
;; | |
No|N|n|* ) | |
echo -e "Please sync the folder and rerun the install" | |
;; | |
esac | |
# mackup - to get profile and $PATH for rbenv, other config | |
#[ -e /bin/zsh && ] | |
#mackup restore | |
#chsh -s /bin/zsh | |
# ruby (if needed) | |
#rbenv init - | |
#CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl` --without-tcl --without-tk" rbenv install 2.0.0 | |
#rbenv rehash | |
#rbenv global 2.0.0 | |
# ruby gems | |
#gem install rubygems-update | |
#gem update --system | |
#gem install bundler foreman librarian-chef berkshelf rake gusteau onetime --no-ri --no-rdoc | |
#rbenv rehash | |
# python | |
pip install virtualenv | |
pip install virtualenvwrapper | |
# install boto | |
#mkvirtualenv aws | |
#pip install boto | |
#deactivate | |
# links | |
for i in scripts repos .ssh; do ln -s $HOME/Dropbox/${i} $HOME/${i}; done | |
# install ssh-copy-id | |
curl -L https://raw.githubusercontent.com/beautifulcode/ssh-copy-id-for-OSX/master/install.sh | sh | |
# link redis | |
#ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents | |
# configure ssh | |
source $HOME/scripts/ssh_config | |
# vagrant | |
vagrant plugin install vagrant-vmware-fusion | |
vagrant plugin license vagrant-vmware-fusion $HOME/Dropbox/Mackup/vagrant-vmware-license.lic | |
vagrant plugin install vagrant-vbguest | |
vagrant plugin install vagrant-cachier | |
# reload quicklook | |
qlmanage -r | |
# app store: | |
#3Hub | |
#Flycut | |
#Keynote | |
#PingdomNotifier | |
#NewRelicMenuBars | |
#QuickCursor | |
#Textual | |
#1Password | |
# ansible factcache? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment