Skip to content

Instantly share code, notes, and snippets.

@marvinahv
Last active December 30, 2015 22:19
Show Gist options
  • Save marvinahv/798d183c2181c51988da to your computer and use it in GitHub Desktop.
Save marvinahv/798d183c2181c51988da to your computer and use it in GitHub Desktop.
Setup Development Environment on Mac OSX

Local Development Environment

Download version depending on operating system.

Homebrew

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

Source

Set Zsh as default:

chsh -s $(which zsh)

Use Terminal Pro. PT Mono 14 Regular. 1/1.25

Remember the caveats.

rubygems-bunder

sudo gem install rubygems-bundler
gem regenerate_binstubs # only once

Source

NodeJS, MongoDB, PostgreSQL, Redis, & Git

brew update
brew install node
brew install git
brew install mongodb postgresql redis

Lunchy

sudo gem install lunchy

To use a service, move the .plist files to ~/Library/LaunchAgents:

cp /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
cp /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
cp /usr/local/opt/redis/*.plist ~/Library/LaunchAgents

Download and install latest version.

To use the subl command:

sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /bin/subl

Install packages:

  • Ruby Slim
  • Sass
  • BetterCoffeeScript (disable compiling)

Add User Preferences:

{
  "color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night-Bright.tmTheme",
  "file_exclude_patterns":
  [
    "Gemfile.lock",
    ".DS_Store",
    ".components",
    // ".gitignore",
    // ".env",
    // "config.ru"
  ],
  "folder_exclude_patterns":
  [
    ".sass-cache",
    ".git"
  ],
  "font_size": 20,
  "ignored_packages":
  [
    "Vintage"
  ],
  "scroll_past_end": true,
  "tab_size": 2,
  "translate_tabs_to_spaces": true,
  "trim_trailing_white_space_on_save": true
}

Download and set as default for Terminal. Font: Menlo Regular 14.

SSH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment