mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-24 03:21:15 -03:00
In case a completion needs a function from another script, run `complete -C"foo "` to load it, so the full autoloading logic is used. Otherwise these things break if the path is off. E.g. cargo's version will fail if you override the cargo completion in ~/.config/fish/completions without also overriding the rustup completions. In other cases, fix for empty $__fish_data_dir, which will be coming in the next commit
16 lines
353 B
Fish
16 lines
353 B
Fish
#RUN: %fish --no-config %s
|
|
|
|
functions | string match help
|
|
# CHECK: help
|
|
|
|
# Universal variables are disabled, we fall back to setting them as global
|
|
set -U
|
|
# CHECK:
|
|
set -U foo bar
|
|
set -S foo
|
|
# CHECK: $foo: set in global scope, unexported, with 1 elements
|
|
# CHECK: $foo[1]: |bar|
|
|
|
|
set -q fish_function_path[2]
|
|
and echo fish_function_path has two elements
|