3ff8c7ef678a990a88ca988c3a4f007296af4934

Author
Rob Lugton <roblugton@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

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

Diff

 1diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
 2index c99b604b54cac238bef0a17493a0363c21b4df7b..63452378db696b399fe66a2d257a3b800aab0ae8 100644
 3--- a/themes/agnoster.zsh-theme
 4+++ b/themes/agnoster.zsh-theme
 5@@ -353,12 +353,19 @@ prompt_aws() {
 6   esac
 7 }
 8 
 9+prompt_terraform() {
10+  local terraform_info=$(tf_prompt_info)
11+  [[ -z "$terraform_info" ]] && return
12+  prompt_segment magenta yellow "TF: $terraform_info"
13+}
14+
15 ## Main prompt
16 build_prompt() {
17   RETVAL=$?
18   prompt_status
19   prompt_virtualenv
20   prompt_aws
21+  prompt_terraform
22   prompt_context
23   prompt_dir
24   prompt_git