diff options
author | Michael Nikitochkin <miry.sof@gmail.com> | 2017-11-14 15:36:22 +0100 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2017-11-14 06:36:22 -0800 |
commit | 510d90749f156ef5f10b656630191df13a86e989 (patch) | |
tree | cebc1b4c3152ed5badee829abf5858cb462b24a8 | |
parent | 2bd24f7e0de0ab2fa6131f15f49d3d86f4d7f4a8 (diff) | |
download | zsh-510d90749f156ef5f10b656630191df13a86e989.tar.gz zsh-510d90749f156ef5f10b656630191df13a86e989.tar.bz2 zsh-510d90749f156ef5f10b656630191df13a86e989.zip |
Fix the terraform function name (#6418)
* 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.
* Updated terraform readme
Updated the name of new function name
-rw-r--r-- | plugins/terraform/README.md | 2 | ||||
-rw-r--r-- | 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 |