Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How I setup my Mac for web development

How to setup OS X for web development

  • Download Command Line Tools for your OS X version from: https://developer.apple.com/downloads/

  • Install Homebrew, it's a third party package manager for OS X: http://brew.sh/

  • System preferences

    • Set key repeat fast and delay minimum from system preferences
    • Set screen auto dimming off
  • Disable rubber band scrolling

      defaults write -g NSScrollViewRubberbanding -bool false
    
  • Disable dashboard

      defaults write com.apple.dashboard mcx-disabled -boolean YES
      killall Dock
    
  • Install sublime text and configure all plugins etc

  • Install node.js and npm.

  • Install Yeoman with npm

  • Install python and pip with brew install python. See brew doctor output and change /usr/local/bin before /usr/bin if brew tells so.

  • Install virtualenvwrapper pip install virtualenv virtualenvwrapper

  • Install autoenv

      brew install autoenv
    

    then add autoenv hook to .bash_profile

  • Install scm breeze for git shortcuts

set myapp to "iTerm"
on appIsRunning(appName)
tell application "System Events" to (name of processes) contains appName
end appIsRunning
if appIsRunning(myapp) then
# What you do here will depend on the program. This works for
# iTerm but you'll need to look up the actions for other programs
# since this bit is iTerm-specific.
tell application "iTerm"
set myterm to (make new terminal)
tell myterm
launch session "Default"
activate
end tell
end tell
else
tell application myapp
activate
end tell
end if
[
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
{ "keys": ["super+alt+up"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["super+alt+down"], "command": "select_lines", "args": {"forward": true} },
{ "keys": ["ctrl+shift+d"], "command": "git_diff" },
{
"keys": ["command+shift+r"], "command": "browser_refresh", "args": {
"auto_save": true,
"delay": 0.0,
"activate_browser": false,
"browser_name" : "all"
}
},
{ "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["super+t"], "command": "new_file" }
]
{
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
],
"rulers":
[
80
],
"shift_tab_unindent": true,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment