fork/fish-shell

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

Johannes AltmanningerFix "set fish_complete_path" accidentally disabling autoloadinga7c04890c

master
454 B21 linesraw
1#RUN: %fish %s
2
3set -g fish_complete_path c1 c2
4mkdir c1 c2
5
6function foo; end
7for i in c1 c2
8    echo >$i/foo.fish "echo auto-loading $i/foo.fish"
9end
10complete -C "foo " >/dev/null
11# CHECK: auto-loading c1/foo.fish
12complete -C "foo " >/dev/null
13# already loaded
14
15set -g fish_complete_path c2
16complete -C "foo " >/dev/null
17# CHECK: auto-loading c2/foo.fish
18
19set -g fish_complete_path c1 c2
20complete -C "foo " >/dev/null
21# CHECK: auto-loading c1/foo.fish