aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_complete_cabal.fish
blob: b5b8c0c009ab251ab7b72f9c75f5fe5f1cf52a99 (plain)
1
2
3
4
5
6
7
8
9
10
function __fish_complete_cabal
        if type -f cabal >/dev/null
                set cmd (commandline -poc)
                if test (count $cmd) -gt 1
                        cabal $cmd[2..-1] --list-options
                else
                        cabal --list-options
                end
        end
end