$ZDOTDIR
contains my zsh configuration.
Customized from the repository at https://github.com/mattmc3/zdotdir
It's a good idea to backup existing files first:
setopt extended_glob
zfiles=(
${ZDOTDIR:-~}/.zsh*(.N)
${ZDOTDIR:-~}/.zlog*(.N)
${ZDOTDIR:-~}/.zprofile(.N)
)
mkdir -p ~/.bak
for zfile in $zfiles; do
cp $zfile ~/.bak
done
unset zfile zfiles
Install this dotfiles repo to your $ZDOTDIR
:
# set the amazing ZDOTDIR variable
export ZDOTDIR=~/.config/zsh
# clone this repo
git clone --recursive git@github.com:dennispg/zdotdir.git $ZDOTDIR
# change the root .zshenv file to use ZDOTDIR
cat << 'EOF' >| ~/.zshenv
export ZDOTDIR=~/.config/zsh
[[ -f $ZDOTDIR/.zshenv ]] && . $ZDOTDIR/.zshenv
EOF
Install nerd fonts via homebrew:
brew tap homebrew/cask-fonts
brew install --cask font-meslo-lg-nerd-font
brew install --cask font-fira-code-nerd-font
brew install --cask font-hack-nerd-font
brew install --cask font-inconsolata-nerd-font
brew install --cask font-sauce-code-pro-nerd-font