feat(agnoster): add terraform to prompt (#7892)
This commit is contained in:
parent
788eaa5930
commit
3ff8c7ef67
1 changed files with 7 additions and 0 deletions
|
|
@ -353,12 +353,19 @@ prompt_aws() {
|
|||
esac
|
||||
}
|
||||
|
||||
prompt_terraform() {
|
||||
local terraform_info=$(tf_prompt_info)
|
||||
[[ -z "$terraform_info" ]] && return
|
||||
prompt_segment magenta yellow "TF: $terraform_info"
|
||||
}
|
||||
|
||||
## Main prompt
|
||||
build_prompt() {
|
||||
RETVAL=$?
|
||||
prompt_status
|
||||
prompt_virtualenv
|
||||
prompt_aws
|
||||
prompt_terraform
|
||||
prompt_context
|
||||
prompt_dir
|
||||
prompt_git
|
||||
|
|
|
|||
Loading…
Reference in a new issue