diff options
author | Matthew Lemon <y@yulqen.org> | 2024-04-08 11:04:43 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-04-08 11:04:43 +0100 |
commit | d3a90ec63fb67aa103be3017c8300f44a995500d (patch) | |
tree | 9a07e0425942cb11ba430e10e84627f9e13fc7ec /fish2024/config.fish | |
parent | 03b4faaeb2f8c8508a9117864e4b6d81ff400998 (diff) |
Don't know whether this gpg agent change is necessary
Diffstat (limited to 'fish2024/config.fish')
-rw-r--r-- | fish2024/config.fish | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fish2024/config.fish b/fish2024/config.fish index a391024..8e00871 100644 --- a/fish2024/config.fish +++ b/fish2024/config.fish @@ -4,3 +4,10 @@ if status is-interactive set -gx GPG_TTY (tty) set -gx LEDGER_FILE $HOME/Budget/hledger/budget.ledger end + +# https://gist.github.com/josh-padnick/c90183be3d0e1feb89afd7573505cab3 +if test -z (pgrep ssh-agent) + eval (ssh-agent -c) > /dev/null + set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK + set -Ux SSH_AGENT_PID $SSH_AGENT_PID +end |