Skip to content

Instantly share code, notes, and snippets.

@Narayon
Created March 6, 2017 02:58
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Narayon/1cf80bdd79d31f3d5f47d678785bab7a to your computer and use it in GitHub Desktop.
Save Narayon/1cf80bdd79d31f3d5f47d678785bab7a to your computer and use it in GitHub Desktop.
Config MacOs machine

macOS

Custom recipe to get macOS running from scratch, setup applications and (WordPress) developer environment. I use this gist to keep the steps required to have a functioning system after a semi-annual fresh install.

Software

Browsers

System

Utilities

Editors

Virtualization

OSX/macOS Preferences

# Use plain text mode for new TextEdit documents
defaults write com.apple.TextEdit RichText -int 0

# Show Path bar in Finder
defaults write com.apple.finder ShowPathbar -bool true

# Show Status bar in Finder
defaults write com.apple.finder ShowStatusBar -bool true

# Avoid creating .DS_Store files on network volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true

# Show the ~/Library folder
chflags nohidden ~/Library

Shell

Xcode

xcode-select --install

Homebrew

brew tap homebrew/php
brew install caskroom/cask/brew-cask
brew install git imagemagick
brew install node nvm
brew install php56
brew install homebrew/php/composer
brew install wp-cli

VVV

vagrant plugin install vagrant-hostsupdater
vagrant plugin install vagrant-triggers
vagrant plugin install vagrant-vbguest

NPM

npm install -g bower gulp grunt yo

PHPCS

composer global require "squizlabs/php_codesniffer=*"

WordPress Coding Standards

composer global require "wp-coding-standards/wpcs"
phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs
phpcs --config-set default_standard WordPress-Extra

Add to your ~/.bash_profile:

export PATH=$PATH:~/.composer/vendor/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment