1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-31 04:04:45 +00:00
nix-darwin/modules/programs
Ihar Hrachyshka 75d14c62cb gpg: Suppress stderr from gpg-connect-agent on shell init
In some scenarios, the command may fail, e.g. when the shell is executed
with a different $HOME from where gpg agent is configured to run from.

(E.g. this happens in kitty terminal test suite.)

This patch will suppress stderr errors on tty in this situation.

Note that zsh does not allow to suppress execution of /etc/zshenv on
startup, so it's impossible to skip it in the test suite environment.

An alternative would be to set IN_NIX_SHELL in the test suite, but this
was rejected in upstream:

https://github.com/kovidgoyal/kitty/pull/7800

There's also a kitty package specific fix posted here but this may be
unnecessary once nix-darwin is patched here:

https://github.com/NixOS/nixpkgs/pull/338070

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2024-08-29 16:37:56 -04:00
..
bash treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
info refactor: rename environment.postBuild to environment.extraSetup 2024-08-17 02:50:56 +03:00
nix-index treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
ssh programs.ssh: add certificate authorities 2024-07-31 19:34:17 +02:00
zsh Change zsh default prompt 2024-05-20 09:48:03 +02:00
direnv.nix chore: remove mkpackageoptionmd deprecation 2024-07-01 16:24:41 +02:00
fish.nix mapAttrsFlatten -> mapAttrsToList 2024-07-27 13:37:28 +10:00
gnupg.nix gpg: Suppress stderr from gpg-connect-agent on shell init 2024-08-29 16:37:56 -04:00
man.nix treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
tmux.nix treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
vim.nix treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00