mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-06-27 03:30:03 +00:00
feat(agnoster): add terraform to prompt (#7892)
This commit is contained in:
parent
788eaa5930
commit
3ff8c7ef67
@ -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…
x
Reference in New Issue
Block a user