Extra check for $AWS_SESSION_EXPIRATION var

This commit is contained in:
Darren Kidd 2020-09-09 12:37:47 +12:00
parent 1bc8cacaeb
commit 5e7bd70af1

View File

@ -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