fork/fish-shell

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

Fabian BoehmMake tests usable with path with spacese66f6878b

master
874 B32 linesraw
1#RUN: fish=%fish %fish %s
2
3function fooc; true; end;
4
5# A non-`complete -k` completion
6complete -c fooc -fa "alpha delta bravo"
7
8# A `complete -k` completion chronologically and alphabetically before the next completion. You'd
9# expect it to come first, but we documented that it will come second.
10complete -c fooc -fka "golf charlie echo"
11
12# A `complete -k` completion that is chronologically after and alphabetically after the previous
13# one, so a naive sort would place it after but we want to make sure it comes before.
14complete -c fooc -fka "india foxtrot hotel"
15
16# Another non-`complete -k` completion
17complete -c fooc -fa "kilo juliett lima"
18
19# Generate completions
20complete -C"fooc "
21# CHECK: india
22# CHECK: foxtrot
23# CHECK: hotel
24# CHECK: golf
25# CHECK: charlie
26# CHECK: echo
27# CHECK: alpha
28# CHECK: bravo
29# CHECK: delta
30# CHECK: juliett
31# CHECK: kilo
32# CHECK: lima