Browse Source

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
Michael Nikitochkin 6 years ago
parent
commit
510d90749f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      plugins/terraform/README.md
  2. 1 1
      plugins/terraform/terraform.plugin.zsh

+ 1 - 1
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)\
 ```

+ 1 - 1
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