From f72da5009162eef7aa54c2e06c69bc20880d2f8d Mon Sep 17 00:00:00 2001 From: sev Date: Mon, 8 Mar 2021 22:13:56 -0600 Subject: [PATCH] complete .zshenv silence --- base/.zshenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/.zshenv b/base/.zshenv index 18b4552..7e0680c 100644 --- a/base/.zshenv +++ b/base/.zshenv @@ -54,7 +54,7 @@ if [[ -v _sev_reset_shell || $SHLVL == 1 ]] { ## ssh agents # NOTE: preferred order of agents to check: okcagent, gnupg, openssh # first block takes care of okcagent and openssh, second gnupg - print -nP "%F{blue}>>>%f SSH: %F{green}" + [[ -o interactive ]] && print -nP "%F{blue}>>>%f SSH: %F{green}" if [[ ! -v SSH_AUTH_SOCK && ( -v commands[okc-ssh-agent] || ( -v commands[ssh-agent] && ! -v commands[gpg] ) ) ]] { okc=${commands[okc-ssh-agent]:+okc-} -- 2.47.0