mirror of
https://github.com/kastdeur/dotfiles.git
synced 2025-06-18 05:06:38 +02:00
[bash] rename bash/rc and bash/bash.d
This commit is contained in:
parent
f67517fdec
commit
6b0d6af2f8
10 changed files with 8 additions and 6 deletions
15
bash/bashrc.d/gpg-agent.bash
Normal file
15
bash/bashrc.d/gpg-agent.bash
Normal file
|
@ -0,0 +1,15 @@
|
|||
# .bash_files
|
||||
|
||||
# Setup gpg agent info
|
||||
# if not running, set one up
|
||||
|
||||
GPG_AGENT_INFO="${HOME}/.gpg-agent-info"
|
||||
|
||||
if [ -f "${GPG_AGENT_INFO}" ]; then
|
||||
source "${GPG_AGENT_INFO}"
|
||||
export GPG_AGENT_INFO
|
||||
export SSH_AUTH_SOCK
|
||||
export SSH_AGENT_PID
|
||||
else
|
||||
/usr/bin/gpg-agent --daemon --write-env-file "${GPG_AGENT_INFO}"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue