(also, how to bootstrap a brand new Mac laptop)
-
Install xcode-select (for basically everything...)
xcode-select --install
-
Install Homebrew
/bin/bash -c \ "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" brew update brew install git
-
Clone this repo:
[[ -d ~/Repos ]] || mkdir ~/Repos cd ~/Repos && git clone git@github.com:mosheavni/dotfiles.git && cd dotfiles
-
Install brew dependencies (generated with
brew bundle dump
)brew bundle
-
Install asdf-vm and its plugins
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.13.1
NOTE: Reload shell
while read -r plugin_line;do asdf plugin-add $(awk '{print $1}' <<<"$plugin_line") done < .tool-versions asdf install
-
Open iTerm2 and start using a real terminal. Also, install shell intergrations
cd ~/Repos/dotfiles curl -L https://iterm2.com/misc/install_shell_integration.sh |Â bash
-
Install oh-my-zsh and its plugins
sh -c \ "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" git clone \ https://github.com/TamCore/autoupdate-oh-my-zsh-plugins \ ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/autoupdate git clone \ https://github.com/zsh-users/zsh-syntax-highlighting.git \ ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting git clone \ https://github.com/zsh-users/zsh-autosuggestions \ ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions git clone \ https://github.com/loiccoyle/zsh-github-copilot \ ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-github-copilot
-
Install effuse:
sudo gem install effuse
-
Run effuse to create the symlinks between the repo dir and the home dir:
effuse
-
Install npm packages
npm install -g $(printf "%s " $(<.default-npm-packages))
-
Install pip dependencies
pip3 install -r requirements.txt
-
Add support for recently-installed fzf
$(brew --prefix)/opt/fzf/install
-
Install gh github cli copilot extension
gh extension install github/gh-copilot --force
-
Login to gh cli
gh auth login --web -h github.com
-
???
-
PROFIT
-
Adjust dock and keyboard settings
-
Link iTerm2 and Karabiner profiles
-
Download and install docker
-
Change clipy shortcuts, and load snippets
-
Install magnet
-
Install Mac Media Key Forwarder
-
Install Snagit