mirror of
https://github.com/andwati/dotfiles.git
synced 2026-11-03 10:22:17 +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
|
~/dev/dotfiles/install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Symlinks `zsh/.zshrc`, `zsh/.zshenv`, `zsh/.zprofile`, and `zsh/.p10k.zsh` into
|
Symlinks `zsh/.zshrc`, `zsh/.zshenv`, `zsh/.zprofile`, `zsh/.p10k.zsh`, and
|
||||||
`$HOME`, and clones oh-my-zsh plus the theme/plugins `.zshrc` expects
|
`gnupg/.gnupg/gpg-agent.conf` into `$HOME`, and clones oh-my-zsh plus the
|
||||||
(powerlevel10k, zsh-autosuggestions, zsh-syntax-highlighting,
|
theme/plugins `.zshrc` expects (powerlevel10k, zsh-autosuggestions,
|
||||||
zsh-history-substring-search, zsh-completions, you-should-use).
|
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
|
Not installed by the script — grab these separately if a fresh machine needs
|
||||||
them: `nvm`, `pyenv`, `bun`, `pnpm`, `deno`, `rustup`, `docker`, `fzf`,
|
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/.zprofile" "$HOME/.zprofile"
|
||||||
link "$DOTFILES_DIR/zsh/.p10k.zsh" "$HOME/.p10k.zsh"
|
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'
|
cat <<'EOF'
|
||||||
|
|
||||||
Done. This does NOT install (grab these separately if missing):
|
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
|
# 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"
|
# export MANPATH="/usr/local/man:$MANPATH"
|
||||||
|
|
||||||
# You may need to manually set your language environment
|
# You may need to manually set your language environment
|
||||||
|
|||||||
Reference in New Issue
Block a user