Skip to content

Commit

Permalink
Update .zshrc
Browse files Browse the repository at this point in the history
Update .gnupg/gpg-agent.conf
  • Loading branch information
senz committed Jul 22, 2024
1 parent 006152c commit 9427448
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dot_zshrc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ if command -v register-python-argcomplete &>/dev/null; then
fi

export GPG_TTY=$(tty)

# Check if gpg-agent is not running
if ! pgrep -u "$USER" gpg-agent > /dev/null; then
gpg-agent --daemon >/dev/null 2>&1
fi

gpg-connect-agent -q updatestartuptty /bye >/dev/null

#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
Expand Down
1 change: 1 addition & 0 deletions private_dot_gnupg/gpg-agent.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ default-cache-ttl 60480000
default-cache-ttl-ssh 60480000
max-cache-ttl-ssh 60480000
pinentry-program /usr/bin/pinentry-qt5
enable-ssh-support

0 comments on commit 9427448

Please sign in to comment.