gpg-agent: Fix nushell integration
This commit is contained in:
parent
3c7bacf1d4
commit
1d717f581b
|
@ -27,9 +27,7 @@ let
|
|||
'' + optionalString cfg.enableSshSupport ''
|
||||
${gpgPkg}/bin/gpg-connect-agent updatestartuptty /bye | ignore
|
||||
|
||||
if not "SSH_AUTH_SOCK" in $env {
|
||||
$env.SSH_AUTH_SOCK = (${gpgPkg}/bin/gpgconf --list-dirs agent-ssh-socket)
|
||||
}
|
||||
$env.SSH_AUTH_SOCK = ($env.SSH_AUTH_SOCK? | default (${gpgPkg}/bin/gpgconf --list-dirs agent-ssh-socket))
|
||||
'';
|
||||
|
||||
# mimic `gpgconf` output for use in `systemd` unit definitions.
|
||||
|
|
Loading…
Reference in a new issue