]> arthur.barton.de Git - ax-zsh.git/commitdiff
gnupg: Suppress messages of "gpg-connect-agent"
authorAlexander Barton <alex@barton.de>
Mon, 18 Dec 2017 13:15:09 +0000 (14:15 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 18 Dec 2017 13:15:09 +0000 (14:15 +0100)
Otherwise, every startup outputs some ugly messages ...

plugins/gnupg/gnupg.zshrc

index e4be6780b64cf0f30fed897c4836b11bd96b3ae8..17d6dc5b8dbcd0a706f0e1276c1c1332a299137b 100644 (file)
@@ -18,5 +18,5 @@ export GPG_TTY=$(tty)
 
 if (( $+commands[gpg-connect-agent] )); then
        # Try to start/connect the agent ...
-       gpg-connect-agent /bye
+       ( gpg-connect-agent /bye >/dev/null 2>&1 )
 fi