dotfiles/zsh/.config/zsh/gpg.zsh

7 lines
241 B
Bash

if [[ ! $(lsb_release -si) =~ "^Debian|Ubuntu$" ]]; then
export GPG_TTY="$TTY"
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
gpgconf --launch gpg-agent
gpg-connect-agent updatestartuptty /bye &> /dev/null
fi