summaryrefslogtreecommitdiff
path: root/themes/agnoster.zsh-theme
diff options
context:
space:
mode:
authorRob Lugton <roblugton@users.noreply.github.com>2025-06-10 04:40:46 +1000
committerGitHub <noreply@github.com>2025-06-09 20:40:46 +0200
commit3ff8c7ef678a990a88ca988c3a4f007296af4934 (patch)
tree37f6875cf2c96b017fa1666f6267fc341724495a /themes/agnoster.zsh-theme
parent788eaa5930eeafceb0cc43f338b0bacf7a2e36a8 (diff)
downloadzsh-3ff8c7ef678a990a88ca988c3a4f007296af4934.tar.gz
zsh-3ff8c7ef678a990a88ca988c3a4f007296af4934.tar.bz2
zsh-3ff8c7ef678a990a88ca988c3a4f007296af4934.zip
feat(agnoster): add terraform to prompt (#7892)
Diffstat (limited to 'themes/agnoster.zsh-theme')
-rw-r--r--themes/agnoster.zsh-theme7
1 files changed, 7 insertions, 0 deletions
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
index c99b604b5..63452378d 100644
--- a/themes/agnoster.zsh-theme
+++ b/themes/agnoster.zsh-theme
@@ -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