mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-19 16:34:24 +00:00
49c5f96470
Bare set overwrites a global/universal variable if it exists.
12 lines
291 B
Fish
12 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)'
|