From 409edf1bfd01f8751fc56749222b691bfdde3221 Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Tue, 21 Sep 2021 12:12:58 -0600 Subject: [PATCH] error suppress option --- activator.plugin.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/activator.plugin.zsh b/activator.plugin.zsh index dd61702..f098c5d 100644 --- a/activator.plugin.zsh +++ b/activator.plugin.zsh @@ -96,6 +96,7 @@ _CA__GET_COMMANDS_AND_PROJECTS() { _CA__ERROR_CLEANUP() { local ERROR="$1" + [ $_CA__SUPPRESS_ERROR ] && return case $ERROR in 42 ) echo 'failed to activate environment; aborting' >&2