{"id":13754852,"url":"https://github.com/dwarvesf/dotfiles","last_synced_at":"2026-04-08T21:01:00.637Z","repository":{"id":348886091,"uuid":"1199294156","full_name":"dwarvesf/dotfiles","owner":"dwarvesf","description":"chezmoi-managed dotfiles — one command to set up a new Mac","archived":false,"fork":false,"pushed_at":"2026-04-03T19:40:59.000Z","size":242,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-04T18:38:01.787Z","etag":null,"topics":["1password","chezmoi","dotfiles","fish-shell","ghostty","macos"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dwarvesf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-02T08:02:11.000Z","updated_at":"2026-04-04T11:53:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dwarvesf/dotfiles","commit_stats":null,"previous_names":["dwarvesf/dotfiles"],"tags_count":2,"template":true,"template_full_name":null,"purl":"pkg:github/dwarvesf/dotfiles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwarvesf%2Fdotfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwarvesf%2Fdotfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwarvesf%2Fdotfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwarvesf%2Fdotfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwarvesf","download_url":"https://codeload.github.com/dwarvesf/dotfiles/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwarvesf%2Fdotfiles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31444702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T15:22:31.103Z","status":"ssl_error","status_checked_at":"2026-04-05T15:22:00.205Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["1password","chezmoi","dotfiles","fish-shell","ghostty","macos"],"created_at":"2024-08-03T10:00:35.133Z","updated_at":"2026-04-05T18:01:11.770Z","avatar_url":"https://github.com/dwarvesf.png","language":"Shell","funding_links":[],"categories":["Collections of dotfiles that shared at Github"],"sub_categories":[],"readme":"# dotfiles\n\n![macOS](https://img.shields.io/badge/macOS-Apple%20Silicon-000?logo=apple\u0026logoColor=white)\n![Fish](https://img.shields.io/badge/Fish-Shell-4AAE46?logo=gnubash\u0026logoColor=white)\n![Starship](https://img.shields.io/badge/Starship-Prompt-DD0B78?logo=starship\u0026logoColor=white)\n![Ghostty](https://img.shields.io/badge/Ghostty-Terminal-1a1a2e)\n![chezmoi](https://img.shields.io/badge/chezmoi-Managed-blue)\n![1Password](https://img.shields.io/badge/1Password-Secrets-0572EC?logo=1password\u0026logoColor=white)\n![CI](https://img.shields.io/github/actions/workflow/status/dwarvesf/dotfiles/test.yml?label=CI\u0026logo=github)\n\nA modern developer tooling stack for macOS, deployed in one command. Every tool is chosen for speed, ergonomics, and native macOS integration; no legacy defaults, no bloat.\n\n**The stack:** [Fish](https://fishshell.com/) replaces Zsh (faster startup, better defaults). [Starship](https://starship.rs/) replaces Oh My Zsh themes (cross-shell, instant). [Ghostty](https://ghostty.org/) replaces iTerm2 (GPU-rendered, native). [delta](https://github.com/dandavison/delta) replaces diff (syntax-highlighted). [eza](https://eza.rocks/), [bat](https://github.com/sharkdp/bat), [fd](https://github.com/sharkdp/fd), [ripgrep](https://github.com/BurntSushi/ripgrep), [zoxide](https://github.com/ajeetdsouza/zoxide), [fzf](https://github.com/junegunn/fzf) replace ls, cat, find, grep, cd, Ctrl+R. [1Password](https://1password.com/) handles secrets via `op://` templates; nothing is ever stored in git. All managed by [chezmoi](https://www.chezmoi.io/) with a [gum](https://github.com/charmbracelet/gum)-powered setup wizard.\n\n\u003c!-- TODO: Add terminal screenshot at docs/assets/terminal.png --\u003e\n\u003c!-- ![Terminal](docs/assets/terminal.png) --\u003e\n\n**Requirements:** macOS 12+, Apple Silicon (Intel works too). First run takes ~30 minutes (Homebrew downloads).\n\n## Quick start\n\n```bash\ngit clone https://github.com/dwarvesf/dotfiles ~/dotfiles\ncd ~/dotfiles \u0026\u0026 ./install.sh\n```\n\nA styled setup wizard ([gum](https://github.com/charmbracelet/gum)) will prompt for your name, email, editor, headless mode, and whether you use 1Password. Everything adapts accordingly. On a headless/server machine, GUI apps, dev toolchains, and casks are skipped automatically.\n\n**Flags:**\n- `./install.sh --check` -- dry-run, validates without applying\n- `./install.sh --force` -- teardown and reinit from scratch\n- `./install.sh --config-only` -- deploy config files only, skip brew/mas/defaults\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eAdopt on an existing Mac\u003c/b\u003e\u003c/summary\u003e\n\nAlready have brew, fish, and your tools installed? Use `--config-only` to deploy just the config files without re-running brew bundle, mas installs, or macOS defaults:\n\n```bash\ngit clone https://github.com/dwarvesf/dotfiles ~/dotfiles\ncd ~/dotfiles \u0026\u0026 ./install.sh --config-only\n```\n\nThis will:\n1. Link chezmoi source to `~/dotfiles/home`\n2. Prompt for your name, email, editor, headless mode, 1Password\n3. Deploy all config files to `$HOME`\n4. **Skip** brew bundle, Mac App Store apps, macOS defaults, toolchain installs\n\nThen switch your shell and reload:\n```bash\n# Set fish as default (if not already)\ngrep -q /opt/homebrew/bin/fish /etc/shells || echo /opt/homebrew/bin/fish | sudo tee -a /etc/shells\nchsh -s /opt/homebrew/bin/fish\n\n# Open a new terminal to pick up the configs\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eAlternative: bootstrap without git\u003c/b\u003e\u003c/summary\u003e\n\nOn a truly fresh Mac, git requires Xcode CLT (10+ minutes to install). These methods skip that:\n\n**Via chezmoi directly (no git, no Homebrew):**\n```bash\nsh -c \"$(curl -fsLS get.chezmoi.io)\" -- init --apply dwarvesf\n```\n\n**Via Homebrew + chezmoi (no git):**\n```bash\n/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"\neval \"$(/opt/homebrew/bin/brew shellenv)\"\nbrew install chezmoi\nchezmoi init --apply dwarvesf\n```\n\n\u003e **Note:** These methods clone into `~/.local/share/chezmoi/` (chezmoi's default) instead of `~/dotfiles`. The git clone method is better for active development since you control the repo location.\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eFork and customize\u003c/b\u003e\u003c/summary\u003e\n\n```bash\n# 1. Fork this repo on GitHub\n# 2. Clone your fork\ngit clone https://github.com/YOUR_USERNAME/dotfiles ~/dotfiles\ncd ~/dotfiles\n\n# 3. Edit what you want (see \"Customization\" below)\n# 4. Run\n./install.sh\n```\n\n\u003c/details\u003e\n\n## What happens on install\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/dotfiles_bootstrap_flow.svg\" alt=\"Bootstrap flow\" width=\"680\"\u003e\n\u003c/p\u003e\n\n1. Installs Homebrew (if missing)\n2. Installs chezmoi\n3. Runs setup wizard (styled prompts for name, email, editor, headless mode, 1Password)\n4. Deploys all config files to `$HOME`\n5. Runs automation scripts:\n   - `brew bundle` -- installs ~80 packages + casks\n   - Mac App Store apps via `mas`\n   - macOS defaults (Dock, Finder, keyboard, trackpad, screenshots)\n   - Sets Fish as default shell\n   - Installs Foundry (cast), Rust, npm/uv tools\n   - VS Code extensions\n6. Verifies key files were deployed\n\n## What's included\n\n| Layer | Tools |\n|-------|-------|\n| **Shell** | Fish + Starship prompt + plugins (autopair, done, sponge, async-prompt) |\n| **Terminal** | Ghostty (catppuccin-mocha, JetBrains Mono) |\n| **Multiplexer** | tmux (C-a prefix, vim nav, fzf session picker, project launcher) |\n| **Editors** | VS Code + Zed (settings, extensions, MCP servers) |\n| **Git** | .gitconfig (delta diffs, aliases) + .gitignore + commit template |\n| **SSH** | 1Password SSH Agent (optional), modular config.d/ |\n| **Secrets** | 1Password (`op://`) + macOS Keychain -- never in git |\n| **Packages** | Layered Brewfile (base/dev/apps) + Mac App Store (`mas`) |\n| **Languages** | mise (Node, Python, Go, Ruby) via `.tool-versions` |\n| **Containers** | OrbStack / Docker config |\n| **macOS** | 30+ `defaults write` (Dock left, fast key repeat, Finder, screenshots) |\n| **Web3/DeFi** | Foundry (`cast`), fish aliases + helper functions |\n\n## Why this setup\n\n- **Layered Brewfile** -- base tools always install; dev toolchains and GUI apps are conditional. Set `headless=true` for servers.\n- **Zero plaintext secrets** -- 1Password `op://` references in templates, macOS Keychain for the rest. The rendered secrets only exist on your machine, never in git.\n- **13-command CLI** -- `dotfiles sync`, `dotfiles doctor`, `dotfiles bench`, `dotfiles backup`... no need to remember raw chezmoi commands.\n- **CI-tested weekly** -- shellcheck + chezmoi dry-run on macOS. Catches regressions before your next fresh install.\n- **Graceful degradation** -- works with or without 1Password. Skip web3, skip Mac App Store, pick your editor. Everything is opt-in.\n\n## Daily usage\n\nThe `dotfiles` wrapper provides ergonomic commands:\n\n```fish\ndotfiles edit ~/.config/fish/config.fish   # edit a config\ndotfiles diff                              # preview changes\ndotfiles sync                              # apply everything\ndotfiles update                            # pull latest + apply\ndotfiles status                            # managed file count + pending diffs\ndotfiles doctor                            # health check (tools, config, drift)\ndotfiles bench                             # benchmark shell startup time\ndotfiles backup                            # back up config + age key to 1Password\ndotfiles encrypt-setup                     # guided age encryption setup\n```\n\nAdding a Homebrew package:\n```fish\ndotfiles edit ~/.Brewfile     # add the line\ndotfiles sync                 # auto-runs brew bundle\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eRaw chezmoi commands\u003c/summary\u003e\n\n```bash\nchezmoi edit ~/.config/fish/config.fish\nchezmoi diff\nchezmoi apply\nchezmoi apply --refresh-externals\n```\n\n\u003c/details\u003e\n\n## Customization\n\n### Files you'll want to edit\n\n| File | What to change |\n|------|---------------|\n| `home/dot_Brewfile.tmpl` | Add/remove Homebrew packages and casks (layered: base/dev/apps) |\n| `home/dot_config/fish/config.fish.tmpl` | Shell aliases, paths, tool integrations |\n| `home/dot_config/ghostty/config` | Terminal theme, font, keybindings |\n| `home/dot_config/tmux/tmux.conf` | tmux prefix, keybindings, status bar |\n| `home/dot_config/code/settings.json` | VS Code theme, font, settings |\n| `home/dot_config/code/extensions.txt` | VS Code extensions (one per line) |\n| `home/dot_config/zed/settings.json.tmpl` | Zed theme, MCP servers |\n| `home/dot_tool-versions` | Global language versions |\n| `home/.chezmoiscripts/run_once_after_mas-apps.sh.tmpl` | Mac App Store apps |\n| `home/.chezmoiscripts/run_once_after_macos-defaults.sh.tmpl` | macOS system preferences |\n| `home/.chezmoiexternal.toml` | Fish plugins to auto-download |\n\n### Adding secrets\n\nSecrets are injected at `chezmoi apply` time and never stored in git.\n\n**With 1Password** (recommended):\n```bash\n# Store the secret\nop item create --vault=Developer --category=api_credential --title=\"OpenAI\" password=\"sk-...\"\n\n# Reference it in a template (e.g., secrets.fish.tmpl)\nset -gx OPENAI_API_KEY \"{{ onepasswordRead \"op://Developer/OpenAI/password\" }}\"\n```\n\n**With macOS Keychain:**\n```fish\nkeychain-set MY_TOKEN \"secret-value\"   # store\nkeychain-env MY_TOKEN                  # load into current shell\n```\n\n**On-demand loading (no apply needed):**\n```fish\nop-env GITHUB_TOKEN \"op://Vault/GitHub Token/password\"   # 1Password\nkeychain-env MY_TOKEN                                     # Keychain\nweb3-env                                                  # ETH_RPC_URL + Etherscan\n```\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eEncrypted files (age)\u003c/b\u003e\u003c/summary\u003e\n\nFor files too complex for template injection (kubeconfig, VPN configs, certificates):\n\n```fish\n# Guided setup (generates key, prints next steps)\ndotfiles encrypt-setup\n\n# Then add encrypted files\nchezmoi add --encrypt ~/.kube/config\n# Creates home/encrypted_dot_kube/config.age in the repo\n```\n\nManual setup if you prefer:\n```bash\nbrew install age\nage-keygen -o ~/.config/chezmoi/key.txt\n# Copy the public key (age1...) from output\nchezmoi edit-config   # uncomment age section, paste public key\n# Backup key.txt to 1Password as a Secure Note\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eRemoving what you don't need\u003c/b\u003e\u003c/summary\u003e\n\n- **No web3?** Delete web3 aliases from `config.fish.tmpl`, remove `cast_*` functions, remove Foundry from install script\n- **No 1Password?** Answer \"no\" during `chezmoi init` -- all 1Password sections are skipped\n- **No Mac App Store?** Delete `run_once_after_mas-apps.sh.tmpl`\n- **Different editor?** `chezmoi init` prompts for your choice (VS Code, Zed, Neovim, Vim)\n\n\u003c/details\u003e\n\n## Troubleshooting\n\nRun `dotfiles doctor` to diagnose issues:\n\n```\n$ dotfiles doctor\nDotfiles health check\n=====================\n\n[ok] chezmoi installed\n[ok] chezmoi source linked\n[ok] fish is default shell\n[ok] homebrew installed\n[ok] 1Password CLI: signed in\n[ok] 1Password SSH agent: socket exists\n[ok] ~/.gitconfig exists\n[ok] ~/.config/fish/config.fish exists\n[ok] ~/.ssh/config exists\n[ok] git identity: Your Name \u003cyou@email.com\u003e\n[ok] fzf\n[ok] bat\n...\n[ok] no drift detected\n\nAll checks passed.\n```\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eHow secrets flow\u003c/b\u003e\u003c/summary\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/dotfiles_secrets_flow.svg\" alt=\"Secrets flow\" width=\"680\"\u003e\n\u003c/p\u003e\n\nOn a new Mac: clone -\u003e `./install.sh` -\u003e `op signin` -\u003e `chezmoi apply` -\u003e done.\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eArchitecture\u003c/b\u003e\u003c/summary\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/dotfiles_architecture.svg\" alt=\"Architecture\" width=\"680\"\u003e\n\u003c/p\u003e\n\n\u003c/details\u003e\n\n## Credits\n\nBuilt with [chezmoi](https://www.chezmoi.io/). Inspired by [halostatue/dotfiles](https://github.com/halostatue/dotfiles) and [narze/dotfiles](https://github.com/narze/dotfiles).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwarvesf%2Fdotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwarvesf%2Fdotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwarvesf%2Fdotfiles/lists"}