Personal dotfiles managed with chezmoi, targeting macOS and Linux.
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply lucacomeThe first apply prompts once for the Bitwarden Secrets Manager access token and
stores it in ~/.config/chezmoi/chezmoi.toml as [data].accessToken.
The pre-source hook installs mise and the bws CLI before templates are
rendered; the remaining mise tools are installed at the end of the same apply.
Anything that should not be public (git email, CA URL) lives in Bitwarden
Secrets Manager. The access token is prompted once by promptStringOnce and
kept in ~/.config/chezmoi/chezmoi.toml, machine-local and never in the repo.
chezmoi data prints it, so do not share that output.
Templates read a secret by its UUID:
email = {{ (bitwardenSecrets "<secret-uuid>" .accessToken).value | trim | quote }}
List keys and IDs with:
BWS_ACCESS_TOKEN="$(chezmoi execute-template '{{ .accessToken }}')" \
bws secret list -o json | jq -r '.[] | "\(.key)\t\(.id)"'Nothing non-public goes into the repo itself: no secret values, no tokens.
ca_url is a secret only because it embeds a private hostname.
Templates fetch a secret by key at apply time:
email = {{ output "bws" "run" "--" "printenv" "gmail" | trim | quote }}
export GITHUB_TOKEN={{ output "bws" "run" "--" "printenv" "github_token" | trim | quote }}
Keys are listed with bws secret list -o table. Nothing non-public goes into
.chezmoi.toml.tmpl or [data]: chezmoi data prints it.
| Tool | Purpose |
|---|---|
| Zsh + Oh My Zsh | Shell with plugins configured via template |
| oh-my-posh | Prompt theme (shell_theme.omp.json) |
| Atuin | Shell history with sync |
Useful options enabled: autocd, autopushd, share_history, large history (10M entries), and Ctrl+Space to accept autosuggestions.
| Tool | Purpose |
|---|---|
| AeroSpace | Tiling window manager |
| Sketchybar | Custom menu bar |
| JankyBorders | Focused window border highlight |
| Karabiner-Elements | Keyboard customization & remapping |
mise manages tool versions. Managed tools include:
bitwarden/bitwarden-secrets-managerage,atuin,oh-my-posh,eza(Linux only)
Aliases are templated per OS/available tools:
| Alias | Command |
|---|---|
update |
Full system update (brew on macOS, apt on Debian, + mise) |
cat |
bat / batcat |
ls / la / ll / lrt / lart |
eza variants with git integration |
fd |
fdfind |
home/
βββ dot_aliases.tmpl # Shell aliases (OS-aware)
βββ dot_zprofile.tmpl # Homebrew env setup
βββ dot_zshrc.tmpl # Zsh config with oh-my-zsh
βββ dot_config/
βββ aerospace/ # AeroSpace tiling WM config
βββ atuin/ # Shell history config
βββ borders/ # JankyBorders config
βββ ghostty/ # Ghostty terminal config
βββ mise/ # mise tool version config
βββ karabiner/ # Karabiner-Elements keyboard config
βββ oh-my-posh/ # Prompt theme
βββ sketchybar/ # Menu bar