mirror of
https://github.com/nix-community/home-manager
synced 2025-01-30 12:55:02 +01:00
gpg-agent: prevent nushell crashing on non-interactive sessions
This commit is contained in:
parent
e83414058e
commit
a50f7910e6
1 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,9 @@ let
|
|||
'' + optionalString cfg.enableSshSupport gpgSshSupportStr;
|
||||
|
||||
gpgNushellInitStr = ''
|
||||
$env.GPG_TTY = (tty)
|
||||
if (is-terminal --stdin) {
|
||||
$env.GPG_TTY = (tty)
|
||||
}
|
||||
'' + optionalString cfg.enableSshSupport ''
|
||||
${gpgPkg}/bin/gpg-connect-agent updatestartuptty /bye | ignore
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue