Skip to content

h3pei/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

690 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Dotfiles managed with chezmoi.

Setup

1. Install Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

https://brew.sh/

2. Install chezmoi

brew install chezmoi

3. Apply dotfiles

chezmoi init --apply h3pei

You will be prompted to enter your email address during chezmoi init.

This will automatically:

  • Deploy all dotfiles to the home directory
  • Create required directories
  • Install zinit

4. Install homebrew packages (optional)

This is a set of packages optimized for personal PCs, so installation is optional.

make brew-install

5. Setup fzf (optional)

fzf must be installed via Homebrew.

$(brew --prefix)/opt/fzf/install

Daily Usage

Editing dotfiles

Edit files directly in the home directory, then sync changes back to the chezmoi source:

# Edit as usual
vim ~/.zshrc
vim ~/.tmux.conf

# Sync all changes back to source at once
chezmoi re-add

# Or sync a specific file
chezmoi add ~/.zshrc

Alternatively, you can edit the source directly via chezmoi edit:

chezmoi edit ~/.zshrc
chezmoi apply

Package management

# Update Brewfile after adding/removing packages
brew bundle dump --force --file="$(chezmoi source-path)/Brewfile"

# chezmoi apply detects Brewfile changes and runs brew bundle automatically
chezmoi apply

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors