Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.1 KB

File metadata and controls

60 lines (38 loc) · 1.1 KB

Dotfiles

This repository contains modular configuration files for your zsh environment.

Structure

  • zsh/aliases.zsh — Your custom aliases (edit this to add more)
  • zsh/worktree.zsh — Git worktree helper functions
  • zsh/zshrc — Loads all .zsh files in this folder

Prerequisites

  • Install fzf (required for worktree helpers):

    brew install fzf

Installation

  1. Clone your dotfiles:

    git clone git@github.com:username/dotfiles.git ~/dotfiles
  2. 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
  3. Restart your terminal or run:

    source ~/.zshrc

Example Aliases

alias gs='git status'
alias ga='git add'
alias gc='git commit'

Worktree Helpers

See zsh/worktree.zsh for:

  • gwa <branch>: Add a new worktree for a branch
  • gws: Switch to a worktree using fzf
  • gwd: Delete the current worktree

Keep your dotfiles modular and organized!