Update aws and virtualenv prompts

This commit is contained in:
Pavle Portic 2021-10-10 11:25:01 +02:00
parent dd03ca376c
commit aa917049ca
Signed by: TheEdgeOfRage
GPG Key ID: F2AB38285780DE3D
1 changed files with 4 additions and 4 deletions

View File

@ -131,7 +131,7 @@ prompt_virtualenv() {
prompt_aws() {
local aws_profile="$AWS_PROFILE"
if [[ -n $aws_profile ]]; then
prompt_segment black yellow "($aws_profile)"
prompt_segment black yellow " $aws_profile"
fi
}
@ -142,7 +142,7 @@ prompt_tf() {
# check if in terraform dir
if [ -d .terraform ]; then
workspace=$(terraform workspace show 2> /dev/null) || return
prompt_segment magenta black "[${workspace}]"
prompt_segment black magenta "[${workspace}]"
fi
}
@ -170,10 +170,10 @@ prompt_time() {
build_prompt() {
#RETVAL=$?
#prompt_status
prompt_virtualenv
prompt_aws
prompt_context
prompt_aws
prompt_dir
prompt_virtualenv
# prompt_tf
prompt_git
prompt_end