ohmyzsh/plugins/terraform/terraform.plugin.zsh
Michael Nikitochkin 28c3ff3990
Fix the terraform function name
Current function name do worse. I always use `terr<TAB>` and before those prompt it was add space in the end. Now because we have multiple functions and binaries started with terraform there are no space.
2017-11-14 12:58:58 +01:00

7 lines
195 B
Bash

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