[TOC]
##Development Installs ####1. install xcode-developer tools
Can be downoaded from www.deverloper.apple.com
OR
Install with xcode-select --install
####2. Install homebrew
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
Add /usr/local/bin
before /usr/bin
with
echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile
Theme and Color Scheme press `
####3. Install vim
brew install vim --override-system-vim --with-lua
may be you need to make add alias "vim=/usr/local/Cellar/vim/7.4.335/bin/vim"
in your ~/.bash_profile
install vundle plugins first to install other plugins
$ git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
Use my general vimrc or my personal vimrc
####4. Install Sublime Text Download latest version of Sublime Text 3
Install package control press ctrl+` and paste and hit enter
import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
Plugins
- SideBarEnhancement
- SublimeCodeIntel
- SublimeLinter
- Emmet
fix for repeated key input in vintage mode
$ defaults write com.sublimetext.3 ApplePressAndHoldEnabled -bool false
####5. Install Node.js Download Installer from www.nodejs.org
##Development Setup ####1. Setup Apache a. Start server by
$ sudo apachectl start
Go to http://localhost
you should see a Working
message
b. Change Document Root
I prefer to use /Users/[username]/Sites
folder as Document Root. So change it first
$ cd /etc/apache2/
$ sudo vim httpd.conf
Find DocumentRoot
and change it to
DocumentRoot "/Users/{your usename}/Sites"
And find <Directory "/Library/WebServer/Documents">
and change to
<Directory "/Users/{your username}/Sites">
c. Override .htaccess
Edit httpd.conf
and find for AllowOverride None
in <Directory ...>
section and change it to
AllowOverride All
####2. Setup PHP PHP 5.4.17 is loaded in the latest preview of OSX 10.9 Mavericks and needs to be turned on by uncommenting a line in the httpd.conf file.
$ cd /etc/apache2/
$ sudo vim httpd.conf
or
$ sudo nano httpd.conf
search for php
and remove # from line (in nano use ctrl+w
for search)
#LoadModule php5_module libexec/apache2/libphp5.so
Restart apache
$ sudo apachectl restart
Create a php info file in your web directory and open http://localhost
echo "<?php phpinfo(); ?>" >> ~/Sites/index.php
####3. Setup Front End DEV.
Install bower
npm install -g bower
Install gulp
npm install -g gulp
Written with StackEdit.