Mac OSX Yosemite Setup Coding Environment Guide

Vagrant

Vagrant is a very useful tool for creation lightweight, reproductible environments. Vagrant uses virtual boxes via an easy to use command line tool.

Installation

  • Download the latest Vagrant for OSX from here.
  • Open the .dmg file and run the Vagrant.pkg file.
  • Follow the on-screen instructions to finalise the installation.
  • Check the installation by running vagrant -v.

Install Virtual Box

  • Download the OSX latest Vistual Box release from the list.
  • Open the .dmg, double click the .pkg file and follow the on-screen instructions.

Test Vagrant and Virtual Box

Follow the Vagrant start up guide.

Install Vagrant Manager

Download the latest version from here.

SublimeText Syntax Highlighting

In order to add syntax highlighting for Vagrantfile files, we'll edit the Ruby language default associations:

  • Go to Preferences > Browse Packages.
  • Open the Ruby language file: Ruby/Ruby.tmLanguage.
  • Find the <key>fileTypes</key> associations.
  • Add <string>Vagrantfile</string> in the <array> tag:
<key>fileTypes</key>
<array>
    <string>rb</array>
    <string>rbx</array>
    .....
    <string>Vagrantfile</array>

If in your SublimeText 3 packages folder there is no Ruby/Ruby.tmLanguage file, there is an alternative to get the same funtionality done:

  • Open a file with the desired extension
  • Go to the bottom right corner, where probably you'll find Plain Text written
  • Click and select Open all with current extension as.. and select the desired language.

reference: https://medium.com/@iturgeon/vagrantfile-syntax-highlighting-in-sublime-text-92bb72a74361