fish-shell/share/completions/cabal.fish
Fabian Homborg ce245704d7 Reformat completion scripts
These were excluded from style.fish
2019-05-05 12:53:09 +02:00

13 lines
288 B
Fish

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)'