Користувальницькькі налаштування

Налаштування сайту


software:os:mac:install

Це стара версія документу!


How to setup Mac

Configure username

Go to System Settings → Users and Groups → click with two fingers on your user, select Advanced settings.

here check User name - that is real login. If you don't like, it's better to create new user

Configure Apple user

Very important and complicated. Apple store is unavailable without it

Open System Settings, click at the top on user. Enter login and password of your Apple account. After that enter 2FA code from SMS.

And after that Apple will require you to enter password from one of your old computers! Be sure to have old computer nearby if you can! Do not wipe it before you setup Apple user on new computer!

(Optional) Configure Safari

Configure profiles

  1. Open Safari
  2. Menu SafariCreate Profile..
  3. Click Start Using Profiles

Now configure at least 2 profiles: Work, Personal

Install Homebrew

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

(Optional) Install programs from Apple Store

First install CLI tool mas:

brew install mas

Now you can search for programs with

mas search nicetool

Install programs with

mas install <app-id> ...

list of useful programs and app-ids:

Programapp-id
Bitwarden1111111

Create file Brewfile:

Brewfile
# Main, always install
brew "mas"
brew "tree"
brew "bash"
brew "bash-completion@2"
brew "bat"
brew "coreutils"
brew "direnv"
brew "z"
brew "jq"
brew "yq"
brew "lynx"
brew "midnight-commander"
brew "htop"
brew "p7zip"
brew "pipenv"
brew "pipx"
brew "pkgconf"
brew "pv"
brew "pwgen"
brew "sf-pwgen"
brew "speedtest-cli"
brew "telnet"
brew "wget"
brew "ykman"
brew "neofetch"
# Next GUI programs
cask "iterm2"
cask "bitwarden"
cask "firefox"
cask "font-fira-code"
cask "font-fira-mono"
cask "font-jetbrains-mono-nerd-font"
cask "iterm2"
cask "keepassxc"
cask "libreoffice"
cask "obsidian"
cask "spotify"
cask "syncthing-app"
cask "textmate"
cask "viber"
cask "vlc"
cask "zoom"
# And finally install from Apple Store
mas "Time out", id: 402592703

and install programs from this file with

brew bundle

Install Oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Install Powerlevel10k (Zsh theme)

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git \
${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

After that open ~/.zshrc and change theme (comment existing):

ZSH_THEME="powerlevel10k/powerlevel10k"

now exit terminal and open it again (should be ZSH!). Now Powerlevel 10k configurator script must start automatically. Answers:

Install Meslo Nerd Font? Yes
restart iterm2
Does this look like a diamond (rotated square)? Yes (check if it is!)
Does this look like lock? Yes
Does this look like an upwards arrow? Yes
...<continue while it's obvious>
Prompt style: Rainbow
Character Set: Unicode
Show current time? 24-hour format
Prompt separators: Angled (or anything you like)
Prompt Heads: Sharp (or anything you like)
Prompt Tails: Flat
Prompt Height: 2 lines
Prompt connection: Dotted
Prompt Frame: Left
Connection and Frame color: Light
Prompt spacing: Sparse
Icons: Many icons
Prompt Flow: Concise
Enable Transient Prompt? Yes
Instant Prompt Mode: Verbose
Save: Yes

Install useful ZSH plugins

Let's add plugins zsh-autosuggestions, zsh-syntax-highlighting:

brew install zsh-autosuggestions zsh-syntax-highlighting
mkdir -pv ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/{zsh-autosuggestions,zsh-syntax-highlighting}
ln -s $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
ln -s $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugin

Improve .zshrc

To configure Brewfile, add to beginning of .zshrc:

# --- macOS brew ---
if [[ "$(uname)" == "Darwin" ]]; then
    # Improve PATH, MANPATH, INFOPATH
    if [[ -x /opt/homebrew/bin/brew ]]; then
        eval "$(/opt/homebrew/bin/brew shellenv)"
    elif [[ -x /usr/local/bin/brew ]]; then
        eval "$(/usr/local/bin/brew shellenv)"
    fi
fi

After “#export PATH” line add next block:

typeset -U path

path=(
  $HOME/.local/bin
  $HOME/bin
  $path
)
software/os/mac/install.1774574528.txt.gz · Востаннє змінено: 2026/03/27 03:22 повз charon