Skip to content

Instantly share code, notes, and snippets.

@nilesolutions
Created July 21, 2017 18:30
Show Gist options
  • Save nilesolutions/16661b437e2f3e421f41d5172cbe5aa7 to your computer and use it in GitHub Desktop.
Save nilesolutions/16661b437e2f3e421f41d5172cbe5aa7 to your computer and use it in GitHub Desktop.
# macOS Sierra v. 10.12 Setup
[View a more detailed explanation of these steps here.](https://www.taniarascia.com/setting-up-a-brand-new-mac-for-development/)
This is a simple list of instructions to make setting up your Apple computer as fast and efficient as possible for front end web development.
## Preferences
- **Keyboard > Text >** Disable "Correct spelling automatically".
- **Security and Privacy > Firewall >** On
- **Security and Privacy > General >** App Store and identified developers
- **File Sharing >** Off
- **Users & Groups > Login Items >** Spectacle, Flux
### Show Library folder
```shell
chflags nohidden ~/Library
```
### Show hidden files
This can also be done by pressing `command` + `shift` + `.`.
```shell
defaults write com.apple.finder AppleShowAllFiles YES
```
### Show path bar
```shell
defaults write com.apple.finder ShowPathbar -bool true
```
### Show status bar
```shell
defaults write com.apple.finder ShowStatusBar -bool true
```
## Homebrew
```shell
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```
### Mac App Store
```shell
brew install mas
```
#### Sign in
```shell
mas signin [email protected]
```
### Brewfile
```shell
touch Brewfile
```
```shell
tap 'caskroom/cask'
brew 'git'
brew 'npm'
cask 'brackets'
cask 'flux'
cask 'firefox'
cask 'gimp'
cask 'google-chrome'
cask 'opera'
cask 'spectacle'
cask 'sequel-pro'
cask 'utorrent'
cask 'vlc'
mas 'Numbers', id: 409203825
mas 'Pages', id: 409201541
mas 'Slack', id: 803453959
mas 'Sip', id: 507257563
mas 'Simplenote', id: 692867256
mas 'Todoist', id: 585829637
```
## GitHub
### Config - `~/.gitconfig`
```shell
[user]
name = First Last
email = [email protected]
[github]
user = username
[alias]
a = add
ca = commit -a
cam = commit -am
s = status
pom = push origin master
pog = push origin gh-pages
puom = pull origin master
puog = pull origin gh-pages
cob = checkout -b
[credential]
helper = osxkeychain
```
## SSH
### Config - `~./ssh/config`
```shell
Host example
HostName example.com
User example-user
IdentityFile key.pem
```
### Generate SSH key
```shell
ssh-keygen -t rsa -b 4096 -C "[email protected]"
```
## Bash
### Config - `~/.bash_profile`
```shell
alias brewup='brew update; brew upgrade; brew prune; brew cleanup; brew doctor'
```
```shell
source ~/.bash_profile
```
### Terminal Colors
```bash
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
```
## Node.js
### Download Node
```shell
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
```
```shell
nvm install node
```
```shell
nvm use node
```
## Node Package Manager
### Gulp
```shell
npm install --global gulp-cli
```
## Ruby Version Manager
### Download rvm
```shell
\curl -sSL https://get.rvm.io | bash -s stable
```
### Install Ruby version
```shell
rvm install ruby-head
```
```shell
rvm --default use 2.4.0
```
```shell
gem install bundler
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment