Setting Up Mac OS X Mavericks for Web Development: Development Essentials

Iterm2 - Replacement/Improvement for Mac OS X Terminal
  • Global Keyboard Shortcut
    • Right click in dock. Options > Assign to All Desktops
    • Set global keyboard shortcut in Iterm2 settings (I use " ^ + ` " CNTRL + Backtick )
  • Font -> Ubuntu Mono -> 18 pt -> Increase both horizontal and vertical spacing
    • ... yeah. Just wait till we talk about my IDE font size/spacing ;)

A bit of Terminal Config...

  • Set global keyboard shortcut (I prefer "CNTRL + `")
  • Assign to All Desktops
  • 18 pt. Ubuntu Font w/ extra horizontal/vertical spacing
  • Opacity/Blur for background

This global shortcut + all desktops settings has been a huge timesaver/productivity boost for me.

Oh My ZSH

Something I do on all machines related to development. Makes my life a lot easier. Simply head on over to https://github.com/robbyrussell/oh-my-zsh and follow the instructions. Actually... here they are. So simple ;)

One liner:

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

Ooop! We forgot the command line developer tools

Yep... as soon as you try to pull any type of command line wizardy you are sure to get the popup warning "Command Line Tools Required" ...

Click install. Wait. Proceed with your life.

This installs

  • git
  • ... WIP

And..... here we are

IDE(s)

Sublime Text 3

Customizing Sublime Text's look and feel

https://github.com/erikthedeveloper/my-developer-goodies-stash

WIP ...

PHPStorm (EAP 8)

Download the PHPStorm EAP 8 here: http://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program

Gutting PHPStorm, hiding 90% of the features, and making it look and feel better

https://laracasts.com/series/how-to-be-awesome-in-phpstorm

WIP ...

node.js

Installing node.js with nvm from start to finish in 3 steps

# 1.) Install instructions per the nvm github install instructions... One liner!
➜  ~  curl https://raw.githubusercontent.com/creationix/nvm/v0.13.1/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3442  100  3442    0     0   3238      0  0:00:01  0:00:01 --:--:--  3241  
=> Downloading nvm from git to '/Users/erikaybar/.nvm'
=> Cloning into '/Users/erikaybar/.nvm'...
# ...
=> Appending source string to /Users/erikaybar/.zshrc
# 2.) Now reload your .zshrc or .bashrc ... or just quit terminal and reload
➜  ~  . ~/.zshrc
➜  ~  which node
node not found  
# 3.) Install your desired version of node.js
➜  ~  nvm install 0.10
######################################################################## 100.0%
Now using node v0.10.30  
➜  ~  which node
/Users/erikaybar/.nvm/v0.10.30/bin/node
nvm alias default 0.10  

Vagrant, Virtual Box, and Homestead - Escaping MAMP ;)

Laravel Homestead is an official, pre-packaged Vagrant "box" that provides you a wonderful development environment without requiring you to install PHP, a web server, and any other server software on your local machine.

No more worrying about messing up your operating system! Vagrant boxes are completely disposable. If something goes wrong, you can destroy and re-create the box in minutes!

Homestead runs on any Windows, Mac, and Linux, and includes the Nginx web server, PHP 5.5, MySQL, Postgres, Redis, Memcached and all of the other goodies you need to develop amazing Laravel applications.

Virtual Box and Vagrant are simple Mac OS X installs...

To install the homestead Vagrant box: vagrant box add laravel/homestead (this will take a bit to download...) All the Homestead box is is a pre configured fully ready to go development box that is geared towards PHP development. It includes a handful of super useful things such as:

Composer

https://getcomposer.org/doc/00-intro.md#globally

curl -sS https://getcomposer.org/installer | php  
# For global installation
mv composer.phar /usr/local/bin/composer  

So many other things...

Until I feel ready to take this on... a bullet list will have to suffice. Running out of steam here ;)

  • ...
  • ...
  • ...

Back to the terminal...

subl Set up Sublime Text 3 for command line usage

brew Homebrew - Brew.sh

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"  

tree

Setup for Development

The Projects Directory

mkdir ~/Projects

Now keep your #$%@ organized ;)

  • ...
  • ...
  • ...

... WIP ...

I always love hearing/learning from others' setups and/or workflows. Let me know in the comments below or find me at @erikthedev_


For those of you (and myself) wanting to use Mac OS X Keyboard characters...

⌘ ⌥ ^ ⏎ ⇧

Erik Aybar

Read more posts by this author.

comments powered by Disqus