mirror of
https://github.com/hcartiaux/dotfiles.git
synced 2024-10-18 17:25:23 +02:00
[bash] environment: use gpg_agent for ssh if possible
This commit is contained in:
parent
99d3d76456
commit
71a080f880
1 changed files with 8 additions and 2 deletions
|
@ -109,11 +109,17 @@ export GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
|
||||||
# MISC
|
# MISC
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
|
|
||||||
unset SSH_ASKPASS
|
|
||||||
|
|
||||||
# GPG config
|
# GPG config
|
||||||
export GNUPGHOME=~/.gnupg
|
export GNUPGHOME=~/.gnupg
|
||||||
|
|
||||||
|
# SSH config
|
||||||
|
|
||||||
|
unset SSH_ASKPASS
|
||||||
|
|
||||||
|
if [[ -e "${GNUPGHOME}/S.gpg-agent.ssh" ]] ; then
|
||||||
|
export SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh
|
||||||
|
fi
|
||||||
|
|
||||||
# Easybuild BUILD PATH
|
# Easybuild BUILD PATH
|
||||||
export EASYBUILDBUILDPATH=/tmp/
|
export EASYBUILDBUILDPATH=/tmp/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue