File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -41,18 +41,9 @@ brews:
41
41
homepage : https://cli.auth0.com
42
42
description : Auth0 CLI
43
43
install : |
44
- bin.install "auth0"
45
- rm Dir["#{bin}/{auth0-completion.bash,auth0-completion.zsh}"]
46
- system bin/"auth0", "completion", "bash"
47
- system bin/"auth0", "completion", "zsh"
48
- bash_completion.install "auth0-completion.bash"
49
- zsh_completion.install "auth0-completion.zsh"
50
- (zsh_completion/"_auth0").write <<~EOS
51
- #compdef auth0
52
- _auth0 () {
53
- local e
54
- e=$(dirname ${funcsourcetrace[1]%:*})/auth0-completion.zsh
55
- if [[ -f $e ]]; then source $e; fi
56
- }
57
- EOS
44
+ bin.install "auth0"
45
+
46
+ (bash_completion/"auth0").write `#{bin}/auth0 completion bash`
47
+ (fish_completion/"auth0.fish").write `#{bin}/auth0 completion fish`
48
+ (zsh_completion/"_auth0").write `#{bin}/auth0 completion zsh`
58
49
caveats : " Thanks for installing Auth0 CLI"
You can’t perform that action at this time.
0 commit comments