(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
-
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
-
Install effuse:
sudo gem install effuse
-
Backup current files:
cd ~ mkdir dotfiles-backup for dotfile in .*;do if [[ -f ~/Repos/dotfiles/${dotfile} ]];then mv ~/${dotfile} ~/dotfiles-backup/${dotfile} fi done
-
Run effuse to create the symlinks between the repo dir and the home dir:
effuse
-
Install npm packages
npm install -g $(printf "%s " $(<Npmfile))
-
Install pip dependencies
pip3 install -r requirements.txt
-
Set python version
PY_LATEST=$(pyenv latest -k 3)
pyenv install "$PY_LATEST"
pyenv global "$PY_LATEST"
-
Add support for recently-installed fzf
$(brew --prefix)/opt/fzf/install
-
Open vim with minimal packer file, wait 1 minute for the packer.nvim repo to be cloned.
nvim -u .config/nvim/first-init.lua
-
Now Install the plugins and wait. (TreeSitter might take some time):
:PackerInstall
-
???
-
PROFIT
-
Adjust dock and keyboard settings
-
Link iTerm2 and Karabiner profiles
-
Download and install docker
-
Change clipy shortcuts
-
Install magnet
-
Install Mac Media Key Forwarder
-
Install Snagit
-
Set Rhubarb file:
echo 'machine api.github.com login moshe password <token>' >> ~/.netrc