1diff --git a/plugins/stack/stack.plugin.zsh b/plugins/stack/stack.plugin.zsh
2index a149208d0ab364ded6ce46c1ed19da75597737d9..4e812880e56ea038be86cc681727855817956039 100644
3--- a/plugins/stack/stack.plugin.zsh
4+++ b/plugins/stack/stack.plugin.zsh
5@@ -1,37 +1,2 @@
6-function _stack_commands() {
7- local ret=1 state
8- _arguments ':subcommand:->subcommand' && ret=0
9-
10- case $state in
11- subcommand)
12- subcommands=(
13- "build:Build the project(s) in this directory/configuration"
14- "install:Build executables and install to a user path"
15- "test:Build and test the project(s) in this directory/configuration"
16- "bench:Build and benchmark the project(s) in this directory/configuration"
17- "haddock:Generate haddocks for the project(s) in this directory/configuration"
18- "new:Create a brand new project"
19- "init:Initialize a stack project based on one or more stack packages"
20- "solver:Use a dependency solver to try and determine missing extra-deps"
21- "setup:Get the appropriate ghc for your project"
22- "path:Print out handy path information"
23- "unpack:Unpack one or more packages locally"
24- "update:Update the package index"
25- "upgrade:Upgrade to the latest stack (experimental)"
26- "upload:Upload a package to Hackage"
27- "dot:Visualize your project's dependency graph using Graphviz dot"
28- "exec:Execute a command"
29- "ghc:Run ghc"
30- "ghci:Run ghci in the context of project(s)"
31- "ide:Run ide-backend-client with the correct arguments"
32- "runghc:Run runghc"
33- "clean:Clean the local packages"
34- "docker:Subcommands specific to Docker use"
35- )
36- _describe -t subcommands 'stack subcommands' subcommands && ret=0
37- esac
38-
39- return ret
40-}
41-
42-compdef _stack_commands stack
43+autoload -U +X bashcompinit && bashcompinit
44+source <(stack --bash-completion-script stack)