Це стара версія документу!
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
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!
Now configure at least 2 profiles: Work, Personal
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
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:
| Program | app-id |
|---|---|
| Bitwarden | 1111111 |
Create file 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
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
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
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}/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh
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 )
Now scroll to “plugins=” and change to:
plugins=( git terraform direnv z zsh-autosuggestions zsh-syntax-highlighting )
remove git and terraform for personal computer