fish-shell/share/functions/__fish_complete_cabal.fish
2013-05-04 12:48:38 -07:00

11 lines
312 B
Fish

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