First thing first, update the system!
For that: Apple Icon > About This Mac then Software Update...
-
Dock
- Remove most applications from Dock
- Dock to the left
- Automatic Hide
- "Show recent applications in Dock" OFF
- "Show indicators for open applications" ON
-
Security and Privacy
- Touch ID
- Allow apps downloaded from App Store and identified developer
-
Siri
- Disable
-
Trackpad
- Tap to Click
- Secondary Click: Bottom Right Corner
-
Spotlight
- Disable Spotlight except for Applications and System Preferences
-
Mission ControlChange computer name
- Hot Corners: Right Corner to display Desktop
-
Sharing
-
Change computer name
-
Make sure all file sharing is disabled
-
xcode-select --install
sudo xcode-select --switch /Library/Developer/CommandLineTools
Homebrew is a package manager: it's a software used to install other software from the command line.
Open a terminal and run the following command
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Set options for Homebrew
export HOMEBREW_CASK_OPTS="--appdir=~/Applications --fontdir=/Library/Fonts"
export HOMEBREW_NO_ANALYTICS=1
Mas is a command line interface for the App Store.
brew install mas
Since Catalina, macOS comes with ZSH.
I use OMZ.
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
In your $HOME, you should have the folder ".oh-my-zsh".
- Bullet Train: Site
-
Auto Suggestions: Site
-
Syntx Highlighting: [Site
Iterm2 is a terminal emulator for macOS.
brew install --cask iterm2
In iTerm2 Preferences, under Profiles and Colors, go to Color Presets... > Import...
Now open Color Presets... again and select Material Colors to activate the theme.
macOS* comes with a pre-installed version of Git but we'll install our own via Homebrew and not interfere with the system version.
brew install git
Define your git user in .gitconfig
git config --global user.name "Your Name"
git config --global user.email "your_email@youremail.com"
ssh-keygen -t ed25519 -C "your_personal_email@example.com" -f ~/.ssh/<personal_key>
ED25519 are recommended for security and performance, but RSA with a sufficient length is also a valid alternative:
ssh-keygen -t rsa -b 4096 -C "your_personal_email@example.com" -f ~/.ssh/<personal_key>
Next, you will be prompted to add an (optional) passphrase. We recommend you do so because it adds an extra layer of security: if someone gains access to your computer, your keys will be compromised unless they are attached to a passphrase.
To update a passphrase:
ssh-keygen -p -f ~/.ssh/<personnal_key>
eval "$(ssh-agent -s)" && ssh-add -K ~/.ssh/<personal_key>
Example with Github
Host github.com
HostName github.com
IdentityFile ~/.ssh/<personal_key>
tr -d '\n' < ~/.ssh/<created_key>.pub | pbcopy
Error
The authenticity of host 'github.com (140.82.113.4)' can't be established.
Fix
ssh-keyscan -t ed25519 github.com >> ~/.ssh/known_hosts
brew install visual-studio-code
Let's install n, a version manager for Node.js.
brew install n
Then install the latest version of node
n lts
Don't forget to set the PATH variable
export PATH="${N_PREFIX}/bin:$PATH"