diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-09-24 15:29:21 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-09-24 15:29:21 +0300 |
commit | cf00c04d1b9af80eda513657cafc1ea194155b06 (patch) | |
tree | 627c63c78db7689937b821e7948e70a84b75d652 /internal/p10k.zsh | |
parent | f6d361d70a8d4a0835363dfa932f33a08cc51b85 (diff) |
aws: consult AWS_VAULT; hide if "default"
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-x | internal/p10k.zsh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index e6a75c15..c569a408 100755 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -857,8 +857,8 @@ prompt_anaconda() { ################################################################ # AWS Profile prompt_aws() { - local aws_profile="${AWS_PROFILE:-$AWS_DEFAULT_PROFILE}" - if [[ -n "$aws_profile" ]]; then + local aws_profile="${AWS_VAULT:-${AWS_PROFILE:-$AWS_DEFAULT_PROFILE}}" + if [[ "$aws_profile" != (default|) ]]; then _p9k_prompt_segment "$0" red white 'AWS_ICON' 0 '' "${aws_profile//\%/%%}" fi } @@ -1860,6 +1860,7 @@ prompt_dotnet_version() { _p9k_prompt_segment "$0" "magenta" "white" 'DOTNET_ICON' 0 '' "$_p9k_ret" } + ################################################################ # Segment to print a little OS icon prompt_os_icon() { |