Skip to content

Instantly share code, notes, and snippets.

@stared
Last active December 20, 2022 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stared/8427eafd718cd2f1e772789740aad9b3 to your computer and use it in GitHub Desktop.
Save stared/8427eafd718cd2f1e772789740aad9b3 to your computer and use it in GitHub Desktop.
Brewing your Mac: install all stuff easily on Macbook Pro 2021 (M1 Pro / Max)
# Homebrew - the package manager
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv)"
# Rosetta - for running apps not native to M1 arm64
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
# Terminal improvement
brew install fish
sudo sh -c 'echo /opt/homebrew/bin/fish >> /etc/shells'
chsh -s /opt/homebrew/bin/fish
set -U fish_user_paths /opt/homebrew/bin $fish_user_paths
# reopen terminal, check if it is installed
brew install starship
echo "starship init fish | source" >> ~/.config/fish/config.fish
brew tap homebrew/cask-fonts
brew install --cask font-fira-code
# Terminal > Preferences > Font > Fira Font
# JavaScript environment (if needed)
brew install node
npm install -g yarn
# Python Anaconda (if needed)
# Mambaforge seems to be the most M1-compatible
brew install --cask mambaforge
sudo chmod 775 ~/.conda # or /environments.txt
conda init fish
conda config --set changeps1 false # co no duplicate env with Starfish
# Rust + WASM (if needed)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
set -Ua fish_user_paths $HOME/.cargo/bin
# NOTE:
# brew install rustup-init *might* work
# brew install rust fails to install the required toolchain
cargo install wasm-pack # for M1 the default install won't work
# git config
# TODO, mostly https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
# install various apps, pick ones tyou wish
brew install --cask firefox google-chrome
brew install --cask rectangle # positioning windows
brew install --cask visual-studio-code
brew install --cask dropbox 1password evernote nordvpn istat-menus
brew install --cask steam spotify
brew install --cask signal whatsapp slack zoom
# misc
# `git lgz for a prettier and more concise git log
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@stared
Copy link
Author

stared commented Apr 10, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment