fish-shell/share/completions/cabal.fish
Johannes Altmanninger 29f35d6cdf completion: adopt commandline -x replacing deprecated -o
This gives us more accurate completions because completion scripts get
expanded paths
2024-01-27 09:28:06 +01:00

10 lines
235 B
Fish

function __fish_complete_cabal
set -l cmd (commandline -pxc)
if test (count $cmd) -gt 1
cabal $cmd[2..-1] --list-options
else
cabal --list-options
end
end
complete -c cabal -a '(__fish_complete_cabal)'