Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

102 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laptop setup

Init

  • install 1Password
    • doing it first to get access to github ssh key
    • enable ssh agent: Settings -> Developer -> Enable SSH Agent
  • clone this repo
    cd ~/code && git clone git@github.com:kroleg/macos.git os
  • install ohmyzsh
  • change ZSH_CUSTOM to point to zsh/custom folder in this repo and ZSH_THEME to kroleg
    sed -i.bak \
      -e "s|^#.*\(ZSH_CUSTOM=\).*|\1\"$PWD/zsh/custom\"|" \
      -e "s|^\(ZSH_THEME=\).*|\1\"kroleg\"|" ~/.zshrc
    cat ~/.zshrc | grep -E "^ZSH_CUSTOM|^ZSH_THEME"
  • restart terminal

Base

  • install command-line tools (probably installed already cause git requires them)
  • install Homebrew from .pkg
  • IF brew not accessible from terminal (which brew fails) add homebrew to shell script
    echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"
  • install stuff from brewfiles:
    • base
      brew bundle install
    • work related
      brew bundle install --file devops.Brewfile`
  • useful key bindings and fuzzy completion
    $(brew --prefix)/opt/fzf/install
  • Ghostty setup
    • set path to config (run in this folder)
      mkdir -p ~/.config/ghostty && echo "config-file = $(pwd)/ghostty/config" > ~/.config/ghostty/config

Raycast

Should have been installed via brew above You need to also:

  • export settings from prev laptop
  • import into new one

VSCode

Installed via brew You need to also:

  • turn on settings sync

git

git config --global user.name "YOUR NAME"
git config --global user.email "YOUR EMAIL"
git config --global core.excludesfile "$(pwd)/git/global-gitignore"

setup personal git email for this repo

git config user.email "***@gmail.com"

Macos quirks and stuff

  • Log in to google accounts in Apple Preferences > Internet Accounts
  • setup alt+Tab to switch windows
    • Pref -> Keyboard -> Keyboard shortcuts -> Keyboard - Moved focus to next window
  • disable hot corners
  • map capslock to Esc
  • allow to use tab to switch between buttons in system popups
    • go to Preferences -> Keyboard -> turn ON Keyboard navigation
  • disable unwanted shortcuts in Preferences -> Keyboard -> Shortcuts (especially Services -> Text)
  • Screenshots should go to Pictures folder
    1. Press Command + Shift + 5.
    2. Click on Options.
    3. Now either pick a folder that is listed, or choose Other Location.
    4. If you choose Other Location you can navigate to the folder you wish the screenshot to go to, or create a folder if required.
    5. Once you have changed the location that is where your screenshots will go until you change the location again.

About

config files for MacOS

Resources

Stars

Watchers

Forks

Contributors

Languages