fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerMerge branch 'completions-to-use-expanded-tokens'a9618477e

master
235 B10 linesraw
1function __fish_complete_cabal
2    set -l cmd (commandline -pxc)
3    if test (count $cmd) -gt 1
4        cabal $cmd[2..-1] --list-options
5    else
6        cabal --list-options
7    end
8end
9
10complete -c cabal -a '(__fish_complete_cabal)'