/mac-dev-environment-setup

Setup of your Mac for Development. Full Sublime Text install with a bunch of great packages. Installation scripts to make things easy.

Primary LanguageC

Dev Setup Instructions

####Download/Install XCode https://itunes.apple.com/us/app/xcode/id497799835?mt=12

After it is done installing, run:

sudo xcodebuild -license

Press the spacebar until you reach the end of the license, then type agree and enter.

####Clone the Repo

git clone https://github.com/litographs/mac-dev-environment-setup.git
cd mac-dev-environment-setup

####Install the Automated Way

chmod +x setup.sh
./setup.sh

You will need to provide some inputs where asked.

####Install Sublime Text 3 http://www.sublimetext.com/3

Make sure your ~/Applications folder exists

ln -s /Applications ~/Applications

Copy Sublime

cp -R "Sublime Text.app" ~/Applications/

Allow opening of file in Sublime from the terminal

ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
subl test.txt

Replace default Sublime setup with Nick W's highly tweaked version

cat Sublime-Support.tar.part.* > Sublime-Support.tar
mv Sublime-Support.tar "~/Library/Application Support/"
cd "~/Library/Application Support/"
tar -xvf Sublime-Support.tar
rm Sublime-Support.tar

####Install Git from Github https://mac.github.com/

cp -R "GitHub.app" ~/Applications/

####Install iTerm2 https://iterm2.com/downloads.html

cp -R "iTerm.app" ~/Applications/

Iterm Prefs

cp com.googlecode.iterm2.plist ~/Library/Preferences/
open "Iterm.app"

Hide/Show iTerm by pressing CTRL + OPT + CMD + T

####Install Postgresapp http://postgresapp.com/

cp -R "Postgres.app" ~/Applications/

####Install oh-my-zsh

curl -L http://install.ohmyz.sh | sh

####Install Ruby Version Manager

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable --ruby

Make sure that [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" has been added to your ~/.bashrc or ~/.zshrc file.

#####Install Compass for compiling Sass files

gem install compass

Close iTerm, reopen.

open ~/Applications/iTerm.app

####Install Homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Debug homebrew

brew doctor
brew update

If all is good, proceed to install packages

brew install wget
brew install imagemagick
brew install python

####Install Node and npm

brew install node

Install some node packages globally

npm install -g less
npm install -g jslint
npm install -g jshint
npm install -g bower

####Install Python Packages

pip install --upgrade setuptools
pip install virtualenv

Install Virtualenvwrapper

pip install virtualenvwrapper

Add the following lines to ~/.zshrc or take the shortcut

Shortcut: cat virtualenvwrapper-appendtext.txt >> ~/.zshrc

export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Devel
source /usr/local/bin/virtualenvwrapper.sh

workon command will list available environments

mkvirtualenv venv

Creates and enters an environment

Install Pillow dependencies

brew install libtiff libjpeg webp little-cms2
pip install Pillow

#####Install more python packages

pip install reportlab
pip install django
pip install flask
pip install requests

####Install Mysql

brew install mysql
unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp

Test login

mysql.server start
mysql_secure_installation

####Install Flycut https://itunes.apple.com/us/app/flycut-clipboard-manager/id442160987?mt=12

####Install Find Any File https://itunes.apple.com/us/app/find-any-file/id402569179?mt=12

###Bonus Section Nick's Favorite Apps

Dropbox Sync your files to the cloud

Better Touch Tool Bind a mouse/touchpad gesture to a keyboard shortcut or action. ie.. hide/show terminal

1Password Password Management

Fantastical Quickly view/add events to your calendar from the menu bar

VLC Play any video format

BetterSnapTool Window snapping

Bartender Hide menu bar items

Deliveries Package/Order Tracking cross platform

Find Any File Find Files anywhere on your filesystem (Useful for debugging.)

iStat Menus Show System Stats from the menu bar

Mint Quickview Show your financial transactions/balances from the menu bar

Screenflow Screen capture app

Shortcat Click items/browse with your keyboard

Transmit Best SFTP App

Parallels My Favorite Virtualization Software

Virtualbox Free VMs

Mou Free Markdown Editor

Hazel Automate tasks via "Watched Folders"