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
Diff
1diff --git a/plugins/terraform/README.md b/plugins/terraform/README.md
2index b39f9916b8f4c02ddb1f415128383224941f878e..46855e4172a9e5770db7ab88840eacfcc01ac0c9 100644
3--- a/plugins/terraform/README.md
4+++ b/plugins/terraform/README.md
5@@ -17,5 +17,5 @@ your .zsh-theme file and in a choosen place insert:
6 7 ```
8 $FG[045]\
9-$(terraform_prompt_info)\
10+$(tf_prompt_info)\
11 ```
12diff --git a/plugins/terraform/terraform.plugin.zsh b/plugins/terraform/terraform.plugin.zsh
13index 84eec5cc1ade74ddeb445d74212fdf16ad0b4d24..b170f73a640f279dbdd99de9afa77bbb49d6ab5d 100644
14--- a/plugins/terraform/terraform.plugin.zsh
15+++ b/plugins/terraform/terraform.plugin.zsh
16@@ -1,4 +1,4 @@
17-function terraform_prompt_info() {
18+function tf_prompt_info() {
19 # check if in terraform dir
20 if [ -d .terraform ]; then
21 workspace=$(terraform workspace show 2> /dev/null) || return