fish-shell/share/completions/cabal.fish
Johannes Altmanninger 49c5f96470 Use set -l to force use of a local variable
Bare set overwrites a global/universal variable if it exists.
2020-05-15 08:25:07 +02:00

13 lines
291 B
Fish

function __fish_complete_cabal
if type -q -f cabal
set -l 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)'