nicolashery /mac-dev-setup
A beginner's guide to setting up a development environment on macOS
★ 5,760⑂ 886👁 189⑃ 46● 42▤ 0
+0
日增长
5,760
stars
886
forks
189
watchers
46
prs
42
issues
0
releases
README
macOS Dev Setup This document describes how I set up my developer environment on a new MacBook or iMac. We will set up popular programming languages (for example Node (JavaScript), Python, and Ruby). You may not need all of them for your projects, although I recommend having them set up as they always come in handy. The document assumes you are new to Mac, but can also be useful if you are reinstalling a system and need some reminder. The steps below were tested on macOS High Sierra (10.13), but should work for more recent versions as well. Contributing: If you find any mistakes in the steps described below, or if any of the commands are outdated, do let me know! For any other suggestions, please understand if I don't include everything. This guide was originally written for some friends getting started with programming on a Mac, and as a personal reference for myself. I'm trying to keep it simple! - System update - System preferences - Security - iTerm2 - Homebrew - Git - Visual Studio Code - Vim - Python - Node.js - Ruby - Heroku - PostgreSQL - Redis - Elasticsearch - Projects folder - Apps System update First thing you need to do, on any OS actually, is update the system! For that: Apple Icon About This Mac then Software Update.... System preferences If this is a new computer, there are a couple of tweaks I like to make to the System Preferences. Feel free to follow these, or to ignore them, depending on your personal preferences. In Apple Icon System Preferences: - Trackpad Tap to click - Keyboard Key Repeat Fast (all the way to the right) - Keyboard Delay Until Repeat Short (all the way to the right) - Dock Automatically hide and show the Dock Security I recommend checking that basic security settings are enabled. You will be happy to have done so if ever your Mac is lost or stolen. In Apple Icon System Preferences: - Users & Groups: If you haven't already set a password for your user during the initial set up, you should do so now - Security & Privacy General: Require password immediately after sleep or screen saver begins (you can keep a grace period of a couple minutes if you prefer, but I like to know that my computer locks as soon as I close it) - Security & Privacy FileVault: Make sure FileVault disk encryption is enabled - iCloud: If you haven't already done so during set up, enable Find My Mac iTerm2 Install Since we're going to be spending a lot of time in the command-line, let's install a better terminal than the default one. Download and install iTerm2. In Finder, drag and drop the iTerm Application file into the Applications folder. You can now launch iTerm, through the Launchpad for instance. Let's just quickly change some preferences. In iTerm2 Preferences..., under the tab General, uncheck Confirm closing multiple sessions and Confirm "Quit iTerm2 (Cmd+Q)" command under the section Closing. In the tab Profiles, create a new one with the "+" icon, and rename it to your first name for exampl
Top issues
#82Beautiful terminal - Atom not showing colors4 comments · 2020-04-18#71Java installation method not working anymore1 comments · 2019-06-13#86Mac now uses zsh as the default instead of bash0 comments · 2021-10-11#85Different homebrew path on M1 macs0 comments · 2021-05-03#83Incomplete line from .bash_profile0 comments · 2020-12-04#77Let's add an instruction on oh-my-zsh0 comments · 2019-07-17#76Add command for software update.0 comments · 2019-07-17