Plugins: Terraform (#6373)

Expanded Terraform plugin with function that can be used to show workspace name in the zsh prompt
This commit is contained in:
Maciej Lasyk authored and Robby Russell committed 2017-11-07 07:45:25 -08:00
1 parent 46062e25cc
commit d12c2ea4e8
2 files changed
+17

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
function terraform_prompt_info() {
# check if in terraform dir
if [ -d .terraform ]; then
workspace=$(terraform workspace show 2> /dev/null) || return
echo "[${workspace}]"
fi
}