Setting Up Mac for Coding
Mac Setup¶
- Check you're admin
- Spotlight >> Users & Groups >> Password = Check Allow user to admin this computer
- Run following on Terminal
sudo plutil -p /var/db/dslocal/nodes/Default/users/root.plist | grep -A 2 passwd
-
Below output means root user is not enabled.
"passwd" => [ 0 => "*" ]
-
Below output means root user is enabled.
sh "passwd" => [ 0 => "********" ]
-
To enable root user, Spotlight >> Directory Utility = Click on the lock at the bottom to unlock it. Edit menu >> Enable Root User
-
Customize Mac
-
Finder - Show Finder path in Status bar: View » Show Path Bar - Drag and drop your favourite folders into the left-side Favorites bar e.g. Macintosh HD, Repos. - Show hidden files and folders using Terminal commands:
```sh defaults write com.apple.finder AppleShowAllFiles YES Killall Finder // Then, restart the Finder by holding down Option+Control and clicking the Finder icon in the Dock, then choose Relaunch ```
-
Trackpad
- Spotlight >> Trackpad >> Point & Click = Check Tap to Click
- Spotlight >> Trackpad >> Point & Click = Un-check Force Click and Haptic Feedback
- Spotlight >> Trackpad >> Point & Click = Increase Tracking Speed
-
Keyboard
- Spotlight >> Keyboard >> Keyboard = Check Use F1,F2 keys as standard keys
- Spotlight >> Keyboard >> Shortcuts = Double click Show Desktop and hit Cmd+D
-
Desktop
- Spotlight >> Desktop & Screensavers >> Screen Saver = Check 'Show with clock'
- Spotlight >> Desktop & Screensavers >> Screen Saver => Hot Corners
-
Left Bottom = Desktop
-
Right Bottom = Screen Saver
-
-
Locking - Spotlight >> Keychain Access >> Preferences = Check 'Show keychain status in menu bar'.
-
Screen Saver - From Finder >> Go To >>
/System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/
(Sierra) - Drag and Drop ScreenSaveEngine app on Dock. - High Sierra =/System/Library/CoreServices/
-
Development Tools & Settings
-
VS Code
- iTerm2
- Sublime
- SnagIt
- Spectacle
- Date-O
-
Mac Tips¶
-
Start-up Programs
- Spotlight >> Users & Groups >> Login Items = Add apps
-
Productivity Tips
Command Purpose CMD+Ctrl+F Full Screen Spotlight Find app, use as calculator, dictionary File delete Backspace delete Back Delete del Forward delete fn del Capture Screen CMD+SHIFT+4 Move Up/Down the Folders CMD + Up/Down CMD Full CMD Full