Using CheatSheets To Apply Best Practices

Mac Cheatsheet

Mac Cheatsheet

1.1 Summary

Name Comment
Share files across intranet System Preferences -> Sharing -> File Sharing, then \\192.168.XX.XXX
Lock the screen Ctrl + Shift + Power
Customize screenshot location defaults write location ~/Dropbox/Screenshots
Swap Cap and Command key Link:

1.2 Home Brew Basic

Name Comment
Get brew version brew --version
HomeBrew update brew update
Install big binary brew cask install <package_name>
List all installed casks brew cask list, brew cask help
uninstall big binary brew cask uninstall <package_name>
Upgrade all the casks brew cask upgrade, brew cask upgrade --no-quarantine
Install openjdk brew cask install adoptopenjdk
Install mvn brew install maven
Brew install package with given version brew install python@2
Reference Link: How to Use Homebrew-Cask

1.3 Mac Install Packages

Name Comment
Install all basic packages code/
Install iterm2 brew cask install iterm2
Install bosh brew install cloudfoundry/tap/bosh-cli
Install realpath brew install coreutils
Install lpass brew install lastpass-cli
Mac install jvm Link: Download Java for Mac OS X

1.4 zsh

Name Comment
Partially disable zsh’s auto correction alias vim=’nocorrect vim’ Link: stackoverflow

1.5 Clean & Release disk

Name Comment
Xcode Library/Developer/Xcode/DerivedData
Trash ~/.Trash, ~/trash

1.6 More Resources

License: Code is licensed under MIT License.


Leave a Reply

Your email address will not be published. Required fields are marked *