Things to do after a factory reset

Homebrew

a package manager for macOS.

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

brew update
brew upgrade

GUI Applications

brew install --cask \
	bitwarden \
	obsidian \
	rectangle \
	spotify \
	gifski \
	iterm2
  • bitwarden - a password management application
  • obsidian - note-taking application
  • rectangle - window management
  • spotify - spotify
  • gifski - converts videos to gif animation
  • iterm2 - a replacement for ‘Terminal’

CLI Applications

brew install \
	curl \
	git \
	gh \
	gpg \
	pinentry-mac \
	mise
  • cURL - a command-line tool for transfering data specified with URL syntax
  • git - version control system
  • gh - Github CLI
  • gpg - OpenPGP encryption and sigining tool
  • pinentry-mac - allow GPG to read passphrases and PIN numbers
  • mise - version manangement tool (it’s like asdf)

oh-my-zsh

Install zsh and oh-my-zsh

brew install zsh
zsh

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

Install powerlevel10k theme for zsh.

git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k

Enable the theme by modifying the ~/.zshrc file.

ZSH_THEME="powerlevel10k/powerlevel10k"

Restart the terminal (source ~/.zshrc) and you can start the configuration or use the command, p10k configure.

General

Change the computer name that displays it in macOS terminal

Open a terminal and enter the following commands:

sudo scutil --set ComputerName "newname"
sudo scutil --set LocalHostName "newname"
sudo scutil --set HostName "newname"

You can also change the name from System Settings -> Sharing -> Local Hostname and click edit.