mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 23:49:56 +00:00
Split gpg-agent config by profile
This commit is contained in:
4
dotfiles/server/.gnupg/gpg-agent.conf
Normal file
4
dotfiles/server/.gnupg/gpg-agent.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
enable-ssh-support
|
||||
pinentry-program /usr/bin/pinentry-curses
|
||||
default-cache-ttl 600
|
||||
max-cache-ttl 7200
|
||||
17
dotfiles/ubuntu/.bashrc.d/30-gpg-agent-wsl.sh
Normal file
17
dotfiles/ubuntu/.bashrc.d/30-gpg-agent-wsl.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
case "$(uname -r 2>/dev/null)" in
|
||||
*[Mm]icrosoft*) ;;
|
||||
*) return ;;
|
||||
esac
|
||||
|
||||
command -v gpgconf >/dev/null 2>&1 || return
|
||||
|
||||
if tty -s; then
|
||||
export GPG_TTY="$(tty)"
|
||||
fi
|
||||
|
||||
gpgconf --launch gpg-agent >/dev/null 2>&1
|
||||
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||
|
||||
if [ -n "${GPG_TTY-}" ]; then
|
||||
gpg-connect-agent updatestartuptty /bye >/dev/null 2>&1
|
||||
fi
|
||||
4
dotfiles/workstation_dev_wsl/.gnupg/gpg-agent.conf
Normal file
4
dotfiles/workstation_dev_wsl/.gnupg/gpg-agent.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
enable-ssh-support
|
||||
pinentry-program /usr/bin/pinentry-curses
|
||||
default-cache-ttl 600
|
||||
max-cache-ttl 7200
|
||||
Reference in New Issue
Block a user