mirror of
https://github.com/andwati/dotfiles.git
synced 2026-10-18 02:52:52 +00:00
Track gpg-agent passphrase caching config
Bumps the GPG passphrase cache from the 10-minute default to 8 hours (24h hard cap) and switches to pinentry-qt for a native KDE dialog, so signed commits stop re-prompting constantly.
This commit is contained in:
@@ -9,10 +9,16 @@ git clone https://github.com/andwati/dotfiles ~/dev/dotfiles
|
||||
~/dev/dotfiles/install.sh
|
||||
```
|
||||
|
||||
Symlinks `zsh/.zshrc`, `zsh/.zshenv`, `zsh/.zprofile`, and `zsh/.p10k.zsh` into
|
||||
`$HOME`, and clones oh-my-zsh plus the theme/plugins `.zshrc` expects
|
||||
(powerlevel10k, zsh-autosuggestions, zsh-syntax-highlighting,
|
||||
zsh-history-substring-search, zsh-completions, you-should-use).
|
||||
Symlinks `zsh/.zshrc`, `zsh/.zshenv`, `zsh/.zprofile`, `zsh/.p10k.zsh`, and
|
||||
`gnupg/.gnupg/gpg-agent.conf` into `$HOME`, and clones oh-my-zsh plus the
|
||||
theme/plugins `.zshrc` expects (powerlevel10k, zsh-autosuggestions,
|
||||
zsh-syntax-highlighting, zsh-history-substring-search, zsh-completions,
|
||||
you-should-use).
|
||||
|
||||
`gpg-agent.conf` caches your GPG passphrase for 8 hours (24h hard cap)
|
||||
instead of the 10-minute default, so signed commits don't re-prompt
|
||||
constantly, and uses `pinentry-qt` for a native dialog instead of a
|
||||
terminal prompt.
|
||||
|
||||
Not installed by the script — grab these separately if a fresh machine needs
|
||||
them: `nvm`, `pyenv`, `bun`, `pnpm`, `deno`, `rustup`, `docker`, `fzf`,
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
default-cache-ttl 28800
|
||||
max-cache-ttl 86400
|
||||
pinentry-program /usr/bin/pinentry-qt
|
||||
@@ -39,6 +39,11 @@ link "$DOTFILES_DIR/zsh/.zshenv" "$HOME/.zshenv"
|
||||
link "$DOTFILES_DIR/zsh/.zprofile" "$HOME/.zprofile"
|
||||
link "$DOTFILES_DIR/zsh/.p10k.zsh" "$HOME/.p10k.zsh"
|
||||
|
||||
mkdir -p "$HOME/.gnupg"
|
||||
chmod 700 "$HOME/.gnupg"
|
||||
link "$DOTFILES_DIR/gnupg/.gnupg/gpg-agent.conf" "$HOME/.gnupg/gpg-agent.conf"
|
||||
gpgconf --kill gpg-agent 2>/dev/null || true
|
||||
|
||||
cat <<'EOF'
|
||||
|
||||
Done. This does NOT install (grab these separately if missing):
|
||||
|
||||
@@ -112,6 +112,10 @@ command -v zoxide >/dev/null && eval "$(zoxide init zsh)"
|
||||
|
||||
# User configuration
|
||||
|
||||
# Needed for gpg-agent to prompt on the right terminal when pinentry falls
|
||||
# back to a tty (e.g. pinentry-curses); harmless no-op with pinentry-qt.
|
||||
export GPG_TTY=$(tty)
|
||||
|
||||
# export MANPATH="/usr/local/man:$MANPATH"
|
||||
|
||||
# You may need to manually set your language environment
|
||||
|
||||
Reference in New Issue
Block a user