Configure a Mac for Developers

?
R
Bash

Quick guide to set up macOS for development. Covers essential tools, package managers, and version control. Optimizes Mac for coding workflows.

1curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
2
3export NVM_DIR="$HOME/.nvm"
4[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
5[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
6
7## Update NVM
8nvm install node --reinstall-packages-from=node
9
10## Specific Versions
11nvm install xx.xx
12nvm use xx.xx
13
14## GIT
15touch ~/.gitconfig
16
17## SSH
18mkdir ~/.ssh && touch ~/.ssh/config
19ssh myssh
20### Generate Key
21ssh-keygen -t rsa -b 4096 -C "email@example.com"
22### Add Key
23ssh-add -K ~/.ssh/id_rsa
24
25## Mac Tuning
26# Show Library folder
27chflags nohidden ~/Library
28
29# Show hidden files
30defaults write com.apple.finder AppleShowAllFiles YES
31
32# Show path bar
33defaults write com.apple.finder ShowPathbar -bool true
34
35# Show status bar
36defaults write com.apple.finder ShowStatusBar -bool true
37
38# Prevent left and right swipe through history in Chrome
39defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool false

Created on 2/28/2020