Назад к заметкам

Мой процесс настройки MacOS после установки

(последнее обновление
Эта заметка доступна только на английском языке

Software

Settings

  • Add Russian text input: System Settings -> Keyboard -> Text Input -> Edit -> ’+’ -> ‘Russian’ -> ‘Russian – PC’.
  • Enable natural trackpad scrolling: System Settings -> Trackpad -> Scroll & Zoom: Natural scrolling (ON).
  • Add user directory to the Finder: Finder -> Go -> Go to finder -> type / -> find user directory and drag it to the Favorites.
  • Always show hidden files:
    defaults write http://com.apple.Finder AppleShowAllFiles true
  • Speed up keyboard: System Settings -> Keyboard -> Key repeat rate – fast, Delay until repeat – fast.

Fonts

Download and install using Font Book.

Configs

SSH keys

  1. Place keys to User/.ssh directory.

  2. Add keys to authentication agent ssh-add ~/.ssh/{private_key}

  3. Set directory rights chmod 700 ~/.ssh/*

  4. Create ssh config .ssh/config

Host {host1}
    HostName {hostname1}
    User {username1}
    IdentityFile ~/.ssh/{filename1}

Host {host2}
    HostName {hostname2}
    User {username2}
    IdentityFile ~/.ssh/{filename2}

Read more about ssh configuration

Enable commits signing (SSH)

  1. Generate SSH key locally.
  2. Add SSH key to GitHub: Settings -> SSH and GPG keys -> New SSH key – Signing.
  3. Update local git settings.
git config --global gpg.format ssh
git config --global user.signingkey ~/PATH/TO/.SSH/KEY.PUB
git config --global commit.gpgsign true

Read more about commits signing

Git configs: work/personal

  1. Create a root .gitconfig file: touch ~/.gitconfig
[includeIf "gitdir:~/work/"]
    path = .gitconfig-work
[includeIf "gitdir:~/personal/"]
    path = .gitconfig-personal
  1. Create work and personal files: touch ~/.gitconfig-personal, touch ~/.gitconfig-work
[user]
    email = work/personal@email.com
    name = John Doe

Read more about conditional git configs