2013-05-04 22:48:24 +08:00
|
|
|
function __fish_complete_cabal
|
2014-07-10 15:26:58 +08:00
|
|
|
if type -q -f cabal
|
2013-05-04 22:48:24 +08:00
|
|
|
set cmd (commandline -poc)
|
|
|
|
if test (count $cmd) -gt 1
|
|
|
|
cabal $cmd[2..-1] --list-options
|
|
|
|
else
|
|
|
|
cabal --list-options
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|