1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2026-02-13 04:40:59 +01:00

add terrafrom workspace label to prompt

This commit is contained in:
Rob Lugton
2019-05-30 12:27:46 +10:00
parent 9930dd6e49
commit d82f4021b6

View File

@@ -236,12 +236,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