1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-06 07:20:40 +01:00

feat(agnoster): add terraform to prompt (#7892)

This commit is contained in:
Rob Lugton
2025-06-10 04:40:46 +10:00
committed by GitHub
parent 788eaa5930
commit 3ff8c7ef67

View File

@@ -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