aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fish2024/config.fish8
1 files changed, 8 insertions, 0 deletions
diff --git a/fish2024/config.fish b/fish2024/config.fish
index 7f3785f..a3a8260 100644
--- a/fish2024/config.fish
+++ b/fish2024/config.fish
@@ -4,4 +4,12 @@ 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
+
. ~/perl5/perlbrew/etc/perlbrew.fish