1
1
Fork 0

zshrc: Don't always have a gpg-agent running

It misbehaves way too often, sometimes trying to use up the entire
virtual address space on the system.
This commit is contained in:
Jonathan Schleifer 2023-08-06 12:01:01 +00:00
parent 4442455fc2
commit 0e42db4b6d

3
zshrc
View file

@ -366,9 +366,6 @@ __has_command url2pkg &&
__has_command mpv && alias mpv="LC_ALL=C mpv"
if __has_command gpg gpg2; then
# Make sure GPG agent is running.
gpg --card-status &>/dev/null
alias gssh='SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) ssh -o IdentitiesOnly=no'
alias gssh-add='SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) ssh-add'
alias gsftp='SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) sftp -o IdentitiesOnly=no'