Update aws and virtualenv prompts
This commit is contained in:
parent
dd03ca376c
commit
aa917049ca
|
@ -131,7 +131,7 @@ prompt_virtualenv() {
|
||||||
prompt_aws() {
|
prompt_aws() {
|
||||||
local aws_profile="$AWS_PROFILE"
|
local aws_profile="$AWS_PROFILE"
|
||||||
if [[ -n $aws_profile ]]; then
|
if [[ -n $aws_profile ]]; then
|
||||||
prompt_segment black yellow "($aws_profile)"
|
prompt_segment black yellow " $aws_profile"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ prompt_tf() {
|
||||||
# check if in terraform dir
|
# check if in terraform dir
|
||||||
if [ -d .terraform ]; then
|
if [ -d .terraform ]; then
|
||||||
workspace=$(terraform workspace show 2> /dev/null) || return
|
workspace=$(terraform workspace show 2> /dev/null) || return
|
||||||
prompt_segment magenta black "[${workspace}]"
|
prompt_segment black magenta "[${workspace}]"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -170,10 +170,10 @@ prompt_time() {
|
||||||
build_prompt() {
|
build_prompt() {
|
||||||
#RETVAL=$?
|
#RETVAL=$?
|
||||||
#prompt_status
|
#prompt_status
|
||||||
prompt_virtualenv
|
|
||||||
prompt_aws
|
|
||||||
prompt_context
|
prompt_context
|
||||||
|
prompt_aws
|
||||||
prompt_dir
|
prompt_dir
|
||||||
|
prompt_virtualenv
|
||||||
# prompt_tf
|
# prompt_tf
|
||||||
prompt_git
|
prompt_git
|
||||||
prompt_end
|
prompt_end
|
||||||
|
|
Loading…
Reference in New Issue