refactor(history): commit development branch
All checks were successful
/ job (push) Successful in 1m12s
All checks were successful
/ job (push) Successful in 1m12s
new development branch from root commit
This commit is contained in:
parent
3e562930f6
commit
020aaa0b9a
94 changed files with 4804 additions and 0 deletions
19
sh/gpg.sh
Normal file
19
sh/gpg.sh
Normal file
|
@ -0,0 +1,19 @@
|
|||
# bind gpg agent to current tty
|
||||
rwx_gpg_agent_update() {
|
||||
gpg-connect-agent \
|
||||
updatestartuptty \
|
||||
/bye
|
||||
}
|
||||
|
||||
rwx_gpg_ssh_auth_sock() {
|
||||
local user_id
|
||||
user_id=$(id --user)
|
||||
if [ "${user_id}" -ne 0 ]; then
|
||||
if [ -f "${HOME}/.gnupg/gpg-agent.conf" ]; then
|
||||
SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||
export SSH_AUTH_SOCK
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
rwx_gpg_ssh_auth_sock
|
Loading…
Add table
Add a link
Reference in a new issue