Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.2
1.0.3
3 changes: 3 additions & 0 deletions brewfiles/Brewfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ brew "mise" # Modern asdf replacement (10x faster)
# JavaScript / Node
brew "bun" # Bun runtime (also managed via mise)

# GPG
brew "pinentry-mac" # macOS-native GPG passphrase dialog

# Build tools
brew "watchman" # File watching (React Native, Jest)

Expand Down
3 changes: 3 additions & 0 deletions dotfiles/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ if /usr/libexec/java_home &>/dev/null; then
export JAVA_HOME=$(/usr/libexec/java_home)
fi

# ─── GPG ────────────────────────────────────────────────────────────────────
export GPG_TTY=$(tty)

# ─── Locale ──────────────────────────────────────────────────────────────────
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
Expand Down
13 changes: 13 additions & 0 deletions modules/06-git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@ GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format SHORT 2>/dev/null | \
if [ -n "$GPG_KEY_ID" ]; then
git config --global user.signingkey "$GPG_KEY_ID"
git config --global commit.gpgsign true
git config --global gpg.program "$(which gpg)"

# Configure pinentry-mac for passphrase entry if available
PINENTRY_MAC="${BREW_PREFIX}/bin/pinentry-mac"
if [ -f "$PINENTRY_MAC" ]; then
GPG_AGENT_CONF="$HOME/.gnupg/gpg-agent.conf"
if ! grep -q "pinentry-program.*pinentry-mac" "$GPG_AGENT_CONF" 2>/dev/null; then
echo "pinentry-program ${PINENTRY_MAC}" >> "$GPG_AGENT_CONF"
gpgconf --kill gpg-agent 2>/dev/null
mbp_log_ok "pinentry-mac configured for GPG agent"
fi
fi

mbp_log_ok "GPG signing enabled: $GPG_KEY_ID"
else
mbp_log_warn "No GPG key found — run 'mbp setup --module secrets' to enable commit signing"
Expand Down
Loading