git clone https://github.com/natesammons/dotfiles.git ~/.dotfiles
Follow the instructions at https://brew.sh/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
bash ~/.dotfiles/brew_install.sh
Fix for the following error with zsh completions:
zsh compinit: insecure directories, run compaudit for list.
# Ignore insecure directories and continue [y] or abort compinit [n]?
Run the following (inside zsh
):
zsh
compaudit | xargs chmod g-w
See this stackexchange.com thread for details.
Above we installed the FiraCode NerdFont and Meslo LG NerdFont using brew. Another good one is the nerd font patched SFMono.
Select one of these in iTerm as your font.
Edit /etc/shells
to add zsh from brew. Add the following lines:
# from brew
/usr/local/bin/zsh
chsh -s /usr/local/bin/zsh
Without this you will use the old version of zsh that ships with MacOS.
Follow the instructions at https://ohmyz.sh/
https://github.com/robbyrussell/oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
This will nuke your .zshrc
so don’t make changes before installing it. Run through the wizard and select the defaults.
https://github.com/romkatv/powerlevel10k
git clone https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k
Powerlevel10K is a Powerlevel9k re-implementation that is a lot faster.
https://github.com/VundleVim/Vundle.vim
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
Replaces these files in your home dir with symlinks to these files.
zsh ~/.dotfiles/init.sh
Run vim
to install plugins:
vim +PluginInstall +qall
It should look like the screenshot above
The .zshrc
config sources files named *.sh
in each of the following directories after setting everything else:
~/.zsh.d
~/.zsh.d.$USER
~/.zsh.d.$(hostname -s)
Files in each of these directories are run in alphabetic order (using sort
on filenames)
Update everything by running the following commands:
zsh ~/.dotfiles/update.sh