Commit f0cf0347 authored by AdminXVII's avatar AdminXVII

GPG agent

parent 40964495
Pipeline #5428 passed with stages
in 1 minute and 31 seconds
......@@ -217,7 +217,7 @@ Since Ion does not support autocompletion via plugins, a lot of oh-my-zsh plugin
|--------------------------+--------------------------------|
| golang | Planned |
|--------------------------+--------------------------------|
| gpg-agent | Planned |
| gpg-agent | Done |
|--------------------------+--------------------------------|
| gradle | Not happening |
|--------------------------+--------------------------------|
......
# Enable gpg-agent if it is not running-
# --use-standard-socket will work from version 2 upwards
export AGENT_SOCK = $(gpgconf --list-dirs | grep agent-socket | cut -d : -f 2)
if not test -S $AGENT_SOCK
gpg-agent --daemon --use-standard-socket &> /dev/null
end
export GPG_TTY = $(tty)
# Set SSH to use gpg-agent if it's enabled
let GNUPGCONFIG = "$or($GNUPGHOME $HOME/.gnupg)/gpg-agent.conf"
if test -r $GNUPGCONFIG && /usr/bin/env grep -q enable-ssh-support $GNUPGCONFIG
export SSH_AUTH_SOCK = $AGENT_SOCK.ssh
export SSH_AGENT_PID = ''
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment