dotfiles/README.md
joshii-h b365b26880 Add Gentoo support: per-distro sysup, gitconfig, conditional zshenv
- dot_zshrc.tmpl: add Gentoo sysup() with live tracker (emerge + flatpak)
- dot_gitconfig.tmpl: per-distro user/email (Gentoo: joshii-h)
- dot_zshenv → dot_zshenv.tmpl: source cargo env only if present
- kitty.conf: set shell explicitly to /bin/zsh
- README.md: add Gentoo prerequisites and install instructions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 20:08:55 +01:00

1.6 KiB

dotfiles

chezmoi-managed dotfiles for Fedora (primary) and Gentoo.

Managed Files

File Template Notes
~/.zshrc Yes sysup() per distro (dnf on Fedora, emerge on Gentoo)
~/.zshenv Yes Cargo env — sourced only if ~/.cargo/env exists
~/.gitconfig Yes delta pager, user/email per distro
~/.config/git/ignore No Global gitignore
~/.config/gh/config.yml No GitHub CLI config
~/.config/kitty/kitty.conf No Portable
~/.config/starship.toml No Portable
~/.config/btop/btop.conf No Portable

Additionally, a run_once_after script generates deno completions via deno completions zsh if deno is installed.

Install

chezmoi init --apply joshii-h/dotfiles

Prerequisites

Common

Fedora

sudo dnf install zsh zsh-completions starship kitty git-delta zoxide

Gentoo

# Keyword unmask for zoxide
echo 'app-shells/zoxide ~amd64' | sudo tee /etc/portage/package.accept_keywords/zoxide

sudo emerge app-shells/zsh app-shells/zsh-completions app-shells/starship \
  x11-terms/kitty dev-util/git-delta app-shells/zoxide

Then install chezmoi (not in Portage):

sh -c "$(curl -fsLS get.chezmoi.io)" -- -b ~/.local/bin

Distro Detection

chezmoi reads /etc/os-release to set a distro variable (fedora or gentoo), used in template conditionals.

chezmoi data | grep distro
# "distro": "gentoo"