@tnez/dotfiles
This is my collection of personal dotfiles.
- Clone this repo:
git clone https://github.com/tnez/dotfiles.git - Hop into directory:
cd dotfiles - Run the bootstrap script:
./bootstrap.sh
Dependencies are tracked in /Users/tnez/Code/tnez/dotfiles/brew/Brewfile and managed via brew bundle.
./scripts/brew-add.sh <package> # For formulas
./scripts/brew-add.sh <package> --cask # For casksThen manually:
- Edit
/Users/tnez/Code/tnez/dotfiles/brew/Brewfileto add description comment - Place entry alphabetically within its section
- Commit:
git add brew/Brewfile && git commit -m 'chore(brew): add <package>'
Weekly or as needed:
./scripts/brew-upgrade.shThis upgrades all installed packages.
- Brewfile: Desired packages (manually curated, commented, alphabetized)
- Run
brew bundle install --globalto converge the machine on the Brewfile - Run
brew bundle cleanup --force --file=brew/Brewfilewhen you intentionally want to prune packages not listed there
All packages use the --dotfiles flag to convert dot- prefixes:
stow --target=$HOME --dotfiles profile # Links profile/dot-profile → ~/.profile
stow --target=$HOME --dotfiles zsh # Links zsh/dot-zshrc → ~/.zshrc
stow --target=$HOME --dotfiles nvim # Links nvim/dot-config/nvim → ~/.config/nvim
stow --target=$HOME --dotfiles vim # Links vim/dot-vimrc → ~/.vimrc
stow --target=$HOME --dotfiles git # Links git/dot-gitconfig → ~/.gitconfigTo unstow a package:
stow --target=$HOME -D --dotfiles zsh # Removes zsh symlinks