1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-27 08:10:08 +00: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 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