Cheat Sheets

macOS

Created: 2018 April 5th

Updated: 2021 January 5th

Install Git without xcode

In the terminal app do:

GNU Bash icon
git

This will install prompt you to install them, agree to the terms and it will download: git, svn, libtool, perl, make, among others. These would come with many Linux distros by default.

You can investigate the install: /Library/Developer/CommandLineTools/

Thanks to Harris Geo for the tip 👍

Screen snip

Select an area to save to a file

GNU Bash icon
cmd + shift + 4

Screen snip to clipboard

GNU Bash icon
cmd + shift + ctrl + 4

Screenshot

Window screenshot

GNU Bash icon
cmd + shift + 4 #then spacebar

Window screenshot to clipboard

GNU Bash icon
cmd + shift + cmd + 4 #then spacebar

Screenshot, record screen UI

There’s another option for taking screenshots in Mojave.

GNU Bash icon
cmd + shift + 5

This is where you can configure the type of snip you want to take.

Hold dow the option key when taking a screenshot to remove the shadow.

Keys

The ’#’ character

GNU Bash icon
alt + 3

System

Show hidden files

GNU Bash icon
shift + cmd + .

Enable “Allow apps downloaded from:”

You may notice that the option to “Allow apps downloaded from: Anywhere” is disabled, to enable it use:

GNU Bash icon
sudo spctl --master-disable