File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ This depends on the bash-completion binary. Example installation instructions:
48
48
% terraform-doc completion zsh > "${fpath[1]}/_terraform-doc"
49
49
50
50
# for fish users
51
- $ terraform-doc completion fish | source
51
+ $ terraform-doc completion fish > ~/.config/fish/completions/terraform-docs.fish
52
52
53
53
Additionally, you may want to output the completion to a file and source in your .bashrc
54
54
Note for zsh users: [1] zsh completions are only supported in versions of zsh >= 5.2
Original file line number Diff line number Diff line change @@ -138,11 +138,17 @@ source <(terraform-docs completion bash)
138
138
139
139
### zsh
140
140
141
- ``` bash
141
+ ``` zsh
142
142
terraform-docs completion zsh > /usr/local/share/zsh/site-functions/_terraform-docs
143
143
autoload -U compinit && compinit
144
144
```
145
145
146
+ ### fish
147
+
148
+ ``` fish
149
+ terraform-doc completion fish > ~/.config/fish/completions/terraform-docs.fish
150
+ ```
151
+
146
152
To make this change permanent, the above commands can be added to ` ~/.profile ` file.
147
153
148
154
[ Chocolatey ] : https://www.chocolatey.org
You can’t perform that action at this time.
0 commit comments