1
0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-12 19:18:28 +02:00

Also show the default profile when set

This commit is contained in:
Melvyn de Kort 2019-10-16 12:48:04 +02:00 committed by Roman Perepelitsa
parent 9fdbd4a3e7
commit abf1e3b0af

View File

@ -935,7 +935,7 @@ prompt_anaconda() {
# AWS Profile
prompt_aws() {
local aws_profile="${AWS_VAULT:-${AWSUME_PROFILE:-${AWS_PROFILE:-$AWS_DEFAULT_PROFILE}}}"
if [[ "$aws_profile" != (default|) ]]; then
if [[ ! -z "$aws_profile" ]]; then
_p9k_prompt_segment "$0" red white 'AWS_ICON' 0 '' "${aws_profile//\%/%%}"
fi
}