✨ feat(gpg): add gpg-agent.conf and fish function
This commit is contained in:
parent
116cd771b0
commit
efca1a3c5c
2 changed files with 7 additions and 0 deletions
6
.config/fish/conf.d/gnupg.fish
Normal file
6
.config/fish/conf.d/gnupg.fish
Normal file
|
@ -0,0 +1,6 @@
|
|||
set -e SSH_AGENT_PID
|
||||
if test -z $gnupg_SSH_AUTH_SOCK_BY; or test $gnupg_SSH_AUTH_SOCK_BY -ne $fish_pid
|
||||
set -gx SSH_AUTH_SOCK (gpgconf --list-dirs agent-ssh-socket)
|
||||
end
|
||||
set -gx GPG_TTY (tty)
|
||||
gpg-connect-agent updatestartuptty /bye >/dev/null
|
1
.gnupg/gpg-agent.conf
Normal file
1
.gnupg/gpg-agent.conf
Normal file
|
@ -0,0 +1 @@
|
|||
enable-ssh-support
|
Loading…
Add table
Reference in a new issue