Skip to content
lucacomePublic

About

No description or website provided.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

Β 

History

279 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

dotfiles

Personal dotfiles managed with chezmoi, targeting macOS and Linux.

Setup

sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply lucacome

The 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.

Secrets

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.

Contents

Shell

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.

macOS Desktop

Tool Purpose
AeroSpace Tiling window manager
Sketchybar Custom menu bar
JankyBorders Focused window border highlight
Karabiner-Elements Keyboard customization & remapping

Terminal

Ghostty

Tool Management

mise manages tool versions. Managed tools include:

  • bitwarden / bitwarden-secrets-manager
  • age, atuin, oh-my-posh, eza (Linux only)

Aliases

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

Structure

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

About

No description or website provided.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Used by

Contributors

Languages