Skip to content

Instantly share code, notes, and snippets.

@rifont
Last active September 26, 2023 11:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rifont/5bb3b2d3995c072737b4c008b27eb8d0 to your computer and use it in GitHub Desktop.
Save rifont/5bb3b2d3995c072737b4c008b27eb8d0 to your computer and use it in GitHub Desktop.
Configure New Mac

Configure New Mac

Login to iCloud

Follow the standard iCloud setup on system startup or System Prefences.

Install XCode

> xcode-select —-install

Install Brew

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

On Apple Silicon machines, there's one more step. Homebrew files are installed into the /opt/homebrew folder. But the folder is not part of the default $PATH. Follow Homebrew's advice and create a ~/.zprofile file which contains a command which sets up Homebrew. Homebrew shows instructions at the end of the installation process:

> echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> $HOME/.zprofile
> eval "$(/opt/homebrew/bin/brew shellenv)"

Verify Installation

> brew doctor
Your system is ready to brew.

Install bundling tool

> brew tap Homebrew/bundle

Install & Configure Mackup

> brew install mackup

> cat << EOF > ~/.mackup.cfg
[storage]
engine = icloud
EOF

> mackup restore

Install Applications from Brewfile

> brew bundle --global

Install oh-my-zsh

> /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
> curl -L -o ~/.oh-my-zsh/custom/themes/materialshell.zsh-theme https://raw.githubusercontent.com/carloscuesta/materialshell/master/materialshell.zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment