Skip to content

Instantly share code, notes, and snippets.

@guerrerocarlos
Last active February 26, 2024 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guerrerocarlos/be1522fa93379047268cb0a381bd4ece to your computer and use it in GitHub Desktop.
Save guerrerocarlos/be1522fa93379047268cb0a381bd4ece to your computer and use it in GitHub Desktop.
Mac Setup Guide

Install Prezto

  1. Launch Zsh:

    zsh
  2. Clone the repository:

    git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
  3. Create a new Zsh configuration by copying/linking the Zsh configuration files provided:

    setopt EXTENDED_GLOB
    for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
      ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
    done
  4. Set Zsh as your default shell:

    chsh -s /bin/zsh
  5. Open a new Zsh terminal window or tab.

  6. Add custom ENV to .zshrc

export LC_ALL="en_US.UTF-8"

Install Brew

  1. Execute directly from their instaler:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. Enable it

    (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/carlos/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"

Make Dock usable

  1. Remove all icons from Dock

    defaults write com.apple.dock static-only -bool TRUE;
  2. Set fast Dock settings:

    defaults write com.apple.dock autohide-delay -float 0; 
    defaults write com.apple.dock autohide-time-modifier -float 0; 
  3. Reset Dock

    killall Dock

Install Basic Apps

  1. Rectangle

    brew install --cask google-chrome
  2. Rectangle

    brew install --cask rectangle
  3. Telegram

    brew install --cask telegram
  4. iTerm2

    brew install --cask iterm2
  5. IINA Player

    brew install --cask iina
  6. Little Snitch

    brew install --cask little-snitch

Little tweaks

Customization of basic apps:

Finder

  • ⌥+⌘+T Show Toolbar
  • ⌥+⌘+P Show Path Bar
  • ⌘+' Show Status Bar
  • Remove all default favourites, set only most-used: home, Downloads, Repositories, etc.
  • Finder Settings -> New Finder windows show -> home folder (instead of "Recents")

Rectangle

  • Change all Shortcuts to work with ⌃+⌥+... so that it doesn't conflict with Chrome Browser ⌥+⌘+[left/right arrow] to change tabs

MacOS Settings

  • Appearance -> Appearance -> Auto
  • Desktop & Dock -> Hot Corners... -> TopLeft -> LockScreen
  • Desktop & Dock -> Hot Corners... -> TopRight -> Put Display to Sleep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment