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 esac
} }
prompt_terraform() {
local terraform_info=$(tf_prompt_info)
[[ -z "$terraform_info" ]] && return
prompt_segment magenta yellow "TF: $terraform_info"
}
## Main prompt ## Main prompt
build_prompt() { build_prompt() {
RETVAL=$? RETVAL=$?
prompt_status prompt_status
prompt_virtualenv prompt_virtualenv
prompt_aws prompt_aws
prompt_terraform
prompt_context prompt_context
prompt_dir prompt_dir
prompt_git prompt_git