Add new segment, aws_profile, to powerline themes

This commit is contained in:
Eduardo Bellido Bellido
2018-10-31 20:09:28 +01:00
parent 73af202a32
commit f757cad45a
9 changed files with 22 additions and 0 deletions

View File

@@ -136,6 +136,12 @@ function __powerline_in_vim_prompt {
fi
}
function __powerline_aws_profile_prompt {
if [[ -n "${AWS_PROFILE}" ]]; then
echo "${AWS_PROFILE_CHAR}${AWS_PROFILE}|${AWS_PROFILE_PROMPT_COLOR}"
fi
}
function __powerline_left_segment {
local OLD_IFS="${IFS}"; IFS="|"
local params=( $1 )