Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/indirect/dotfiles. strap.mikemcquaid.com
dotfiles
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132#!/bin/bashset -euo pipefailset -vx
echo "installing Rosetta..."/usr/bin/pgrep -q oahd || sudo softwareupdate --install-rosetta --agree-to-license
echo "installing chezmoi..."brew install chezmoi
echo "moving dotfiles for chezmoi..."# relocate the checkout to the usual ~/src/indirect/dotfiles location[[ -d ~/src/indirect ]] || mkdir -p ~/src/indirect[[ -d ~/src/indirect/dotfiles ]] || mv ~/.dotfiles ~/src/indirect/dotfiles
# link the conventional .dotfiles location[[ -L ~/.dotfiles ]] || ln -sf ~/src/indirect/dotfiles ~/.dotfiles
# link the chezmoi ~/.local/share/chezmoi location[[ -d ~/.local/share ]] || mkdir -p ~/.local/share[[ -L ~/.local/share/chezmoi ]] || ln -sf ~/src/indirect/dotfiles ~/.local/share/chezmoi
echo "initializing chezmoi..."chezmoi init
echo "configuring zsh..."chezmoi apply ~/.zshenv ~/.p10k.zsh ~/.zsh ~/.zshrc
echo "setting up Brewfile"chezmoi apply ~/.Brewfilechezmoi apply --source-path ~/.local/share/chezmoi/run_onchange_brew_bundle.sh.tmpl