fish-shell/share/completions/cabal.fish

13 lines
288 B
Fish
Raw Normal View History

2015-09-28 14:08:01 +00:00
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
2015-09-28 14:08:01 +00:00
end
end
2015-09-28 14:08:01 +00:00
end
2013-05-04 14:48:24 +00:00
complete -c cabal -a '(__fish_complete_cabal)'