terraform.plugin.zsh 195 B

1234567
  1. function tf_prompt_info() {
  2. # check if in terraform dir
  3. if [ -d .terraform ]; then
  4. workspace=$(terraform workspace show 2> /dev/null) || return
  5. echo "[${workspace}]"
  6. fi
  7. }