Skip to content

himynameisdave/macos-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

macOS Setup

💻 Steps I take for setting up a new McBook


When setting up a new MacBook, here is roughly the series of steps / applications I download in order to get the system in an optimal state for me to develop properly.

Settings

Trackpad

  1. Disable Look up/dictionary click.
  2. Enable tab to click.

Mission Control

  1. Disable "Automatically rearrange Spaces based on most recent use"

Sound

  1. Enable "Play feedback when volume is changed"

a11y

  1. Under "Zoom", enable "Use scroll gesture with modifier keys to zoom", setting the key to ^Control.
  2. Under "Display", slightly bump the contrast and cursor size (based on displays being used).
  3. Under "Mouse & Trackpad", click "Trackpad Options", then enable dragging via three-finger drag.

Applications

  1. Spectacle - Deprecated
    • Rectangle - Vital app for moving/resizing windows around the screen.
  2. Spark - Sexy email client.
  3. VS Code - Prefered code editor.
  4. iTerm2 - Prefered terminal client.
  5. Insomnia - Tool for testing APIs (REST & GraphQL).
  6. Slack - Slack, for work and fun.
  7. Pock - App for customizing the macOS Touch Bar.
  8. Amphetamine - Keep your Mac awake, on demand.
  9. GPG Tools - Manager for GPG keys.
  10. NordVPN - A nice VPN.
  11. Signal - For chatting with pals.
  12. Memory Diag - Helps with memory management.
  13. Monitor Control - Control external monitor brightness, contrast or volume via keyboard native keys.

Homebrew & Command Line Tools

Homebrew is a must-have for any macOS system. Install it using the following command, then let's install some stuff:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. brew install ack - ack is like grep, but much nicer.
  2. sudo easy_install Pygments - Pygments Better syntax highlighting, for this command.
  3. brew install tree - tree is a nice tree view for the current directory.

Node

Gotta have NodeJS! The best way to install and manage it is using Node Version Manager (nvm). Install it like so:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash

You can then proceed to install Node. Run nvm ls-remote to list remote versions of node versions.

Note: After installing node, all future versions should be installed using this commamnd. This will install the new version, and all the globally installed packages.

Deno

Now that Deno is stable/v1, install it so that we can use it for new projects moving forward.

brew install deno

Dotfiles

Please check out this dotfiles repository for info on the dotfiles. It includes a .profile, along with various .alises and .functions which I usually use. It also includes the starship configuration I use (see below).

Starship

Install starship.

brew install starship

This is a handy terminal tool with some neat features. It has its own starship.toml config file that you can find in my dotfiles.

VSCode

Extensions

  1. Atom Keymap - Inherit a lot of Atom's keymappings.
  2. Atom One Dark Theme - Nice theme.
  3. Material Icon Theme - Better icons, with support for oodles of extensions.
  4. GitLens - Adds lots of built-in git goodies, such as viewing who last edited a line.
  5. Bracket Pair Colorizer - Makes matching brackets have the same color, making code blocks easier to see.
  6. ESLint - ESLint in VSCode.
  7. npm Intellisense - Autocompletes npm modules in import statements.
  8. Svelte - Adds Svelte language support.
  9. Svelte Intellisense - Adds Svelte intellisense support.
  10. ES7 React/Redux Snippets - Some good snippets for React & Redux. Currently looking for a better replacement.
  11. Go - Adds language support for the Go language to VS Code.
  12. Chrome Debugger - Debug code running in Google Chrome from VS Code.
  13. Rainbow CSV - Make CSVs pretty again!
  14. Sort JS Object Keys - Alphabetize JS object keys.
  15. Markdown Lint - Lint markdown files for common pitfalls.
  16. Indent 4-to-2 - Simplify converting indentation of tab or 4 spaces into 2 spaces.

Key Mappings

There are a few key mappings which I prefer to set when setting up VS Code. Hit SHIFT + CMD + P to pull up the commands pallet, then select Preferences: Open Keyboard Shortcuts.

  • Move Line Down - ^ + +
  • Move Line Up - ^ + +

Font

Use the Cascadia font from Microsoft. Download this .ttf file, install the font on your Mac by opening the file, and then in VSCode open up the settings UI and add the following as the font-family:

'Cascadia Mono PL', Menlo, Monaco, 'Courier New', monospace

iTerm

Colours

Use the provided colour pallet. You can add them under Preferences > Profiles > Colors > Color Presets > Import.

Keys

Under Preferences > Profiles > Keys, alter the following two key combos:

  • + ⬅️ - Send Escape Sequence b
  • + ➡ - Send Escape Sequence f

Fonts

In order to use starship, you'll need a Nerd Font that supports the glyphs to be used in the terminal. I prefer the Cascadia variant. You can add it to iTerm via Profiles > Text.


✌️ Made by Dave.

About

💻 Steps I take for setting up a new McBook

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published