From 5e7bd70af10e11d2e3255ff4c7fc168a6f1ad8b2 Mon Sep 17 00:00:00 2001 From: Darren Kidd Date: Wed, 9 Sep 2020 12:37:47 +1200 Subject: [PATCH] Extra check for $AWS_SESSION_EXPIRATION var --- fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index aeb9ac9..3dcdfb8 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -653,7 +653,7 @@ function __bobthefish_prompt_aws_vault_profile -S -d 'Show AWS Vault profile' [ "$theme_display_aws_vault_profile" = 'yes' ] or return - [ -n "$AWS_VAULT" ] + [ -n "$AWS_VAULT" -a -n "$AWS_SESSION_EXPIRATION" ] or return set -l profile $AWS_VAULT