mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-23 17:53:38 +08:00
29f35d6cdf
This gives us more accurate completions because completion scripts get expanded paths
11 lines
235 B
Fish
11 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)'
|