aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/cabal.fish
blob: 02eecd5f87eab854ba816b0f4268feb03eafbc3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function __fish_complete_cabal
        if type -q -f cabal
                set cmd (commandline -poc)
                if test (count $cmd) -gt 1
                        cabal $cmd[2..-1] --list-options
                else
                        cabal --list-options
                end
        end
end

complete -c cabal -a '(__fish_complete_cabal)'