8000 feat(profile.d): Add gnupg boot script · musq/dotfiles@2fb9731 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 2fb9731

Browse files
committed
feat(profile.d): Add gnupg boot script
1 parent 24b97e1 commit 2fb9731

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/shell/profile.d/gpg.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
4+
5+
export GPG_TTY=$(tty)
6+
7+
unset SSH_AGENT_PID
8+
9+
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
10+
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
11+
fi
12+
13+
gpg-connect-agent updatestartuptty /bye >/dev/null

0 commit comments

Comments
 (0)
0