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:
parent
4442455fc2
commit
0e42db4b6d
1 changed files with 0 additions and 3 deletions
3
zshrc
3
zshrc
|
@ -366,9 +366,6 @@ __has_command url2pkg &&
|
||||||
__has_command mpv && alias mpv="LC_ALL=C mpv"
|
__has_command mpv && alias mpv="LC_ALL=C mpv"
|
||||||
|
|
||||||
if __has_command gpg gpg2; then
|
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='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 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'
|
alias gsftp='SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) sftp -o IdentitiesOnly=no'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue