home: Only set SSH_AUTH_SOCK if unset

This commit is contained in:
Mikael 2024-11-06 13:51:49 +01:00
parent 4303771857
commit 8aa4030bb4
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -249,9 +249,12 @@ in {
PROMPT_INDICATOR: { " " }
SSH_AUTH_SOCK: $"($env.XDG_RUNTIME_DIR)/ssh-agent"
TMPDIR: $"($env.XDG_RUNTIME_DIR)/tmp"
}
if SSH_AUTH_SOCK not-in $env {
$env.SSH_AUTH_SOCK = $"($env.XDG_RUNTIME_DIR)/ssh-agent"
}
'';
configFile.text = ''