This repository contains modular configuration files for your zsh environment.
zsh/aliases.zsh— Your custom aliases (edit this to add more)zsh/worktree.zsh— Git worktree helper functionszsh/zshrc— Loads all.zshfiles in this folder
-
Install fzf (required for worktree helpers):
brew install fzf
-
Clone your dotfiles:
git clone git@github.com:username/dotfiles.git ~/dotfiles -
Source your modular dotfiles from your existing .zshrc:
Add this line to your
~/.zshrc(anywhere):for file in ~/dotfiles/zsh/*.zsh; do source "$file"; done
-
Restart your terminal or run:
source ~/.zshrc
alias gs='git status'
alias ga='git add'
alias gc='git commit'
See zsh/worktree.zsh for:
gwa <branch>: Add a new worktree for a branchgws: Switch to a worktree using fzfgwd: Delete the current worktree
Keep your dotfiles modular and organized!