From 510d90749f156ef5f10b656630191df13a86e989 Mon Sep 17 00:00:00 2001 From: Michael Nikitochkin Date: Tue, 14 Nov 2017 15:36:22 +0100 Subject: [PATCH] Fix the terraform function name (#6418) * Fix the terraform function name Current function name do worse. I always use `terr` 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. * Updated terraform readme Updated the name of new function name --- plugins/terraform/README.md | 2 +- plugins/terraform/terraform.plugin.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/terraform/README.md b/plugins/terraform/README.md index b39f9916b..46855e417 100644 --- a/plugins/terraform/README.md +++ b/plugins/terraform/README.md @@ -17,5 +17,5 @@ your .zsh-theme file and in a choosen place insert: ``` $FG[045]\ -$(terraform_prompt_info)\ +$(tf_prompt_info)\ ``` diff --git a/plugins/terraform/terraform.plugin.zsh b/plugins/terraform/terraform.plugin.zsh index 84eec5cc1..b170f73a6 100644 --- a/plugins/terraform/terraform.plugin.zsh +++ b/plugins/terraform/terraform.plugin.zsh @@ -1,4 +1,4 @@ -function terraform_prompt_info() { +function tf_prompt_info() { # check if in terraform dir if [ -d .terraform ]; then workspace=$(terraform workspace show 2> /dev/null) || return