View a more detailed explanation of these steps here.
This is a simple list of instructions to make setting up your Apple computer as fast and efficient as possible for web development.
- 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
chflags nohidden ~/Library
Show hidden files
This can also be done by pressing command
+ shift
+ .
.
defaults write com.apple.finder AppleShowAllFiles YES
defaults write com.apple.finder ShowPathbar -bool true
defaults write com.apple.finder ShowStatusBar -bool true
sudo spctl --master-disable
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install mas
mas signin [email protected]
touch Brewfile
tap 'caskroom/cask'
brew 'git'
brew 'npm'
cask 'visual-studio-code'
cask 'firefox'
cask 'gimp'
cask 'google-chrome'
cask 'opera'
cask 'spectacle'
cask 'sequel-pro'
cask 'utorrent'
cask 'vlc'
cask 'macdown'
mas 'Slack', id: 803453959
mas 'Sip', id: 507257563
mas 'Simplenote', id: 692867256
mas 'Todoist', id: 585829637
[user]
name = Firstname Lastname
email = [email protected]
[github]
user = hunter2
[alias]
a = add
ca = commit -a
cam = commit -am
cm = commit -m
s = status
pom = push origin master
pog = push origin gh-pages
puom = pull origin master
puog = pull origin gh-pages
cob = checkout -b
co = checkout
l = log --oneline --decorate --graph
lall = log --oneline --decorate --graph --all
ls = log --oneline --decorate --graph --stat
lt = log --graph --decorate --pretty=format:'%C(yellow)%h%Creset%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)%an%Creset'
[credential]
helper = osxkeychain
Host example
HostName example.com
User example-user
IdentityFile key.pem
ssh-keygen -t rsa -b 4096 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add -K ~/.ssh/id_rsa
# Update and clean homebrow in one command
alias brewup='brew update; brew upgrade; brew prune; brew cleanup; brew doctor'
# Add colors to Terminal
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
# Get Git branch
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
# Format to user@host:/path/to/directory (branch-name)
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\$(parse_git_branch)\[\033[m\]\$ "
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
nvm install node
nvm use node
nvm install node --reinstall-packages-from=node
npm outdated -g --depth=0
\curl -sSL https://get.rvm.io | bash -s stable
rvm install ruby-head
rvm --default use 2.4.0
gem install bundler
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer