fish-shell/tests/checks/no-config.fish
Fabian Homborg 5ddb1adac1 Only use DATADIR in $fish_function_path if no-config is used
This only uses the functions fish ships with, but still doesn't allow
any *customization*, which is the point of no-config.

This makes it a lot more usable, given that the actual normal prompt
and things are there.

This still doesn't set any colors, because we don't run
__fish_config_interactive because we don't read config.fish (any
config.fish), because that would run the snippets.
2021-05-01 18:59:25 +02:00

17 lines
445 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 -S fish_function_path fish_complete_path
# CHECK: $fish_function_path: set in global scope, unexported, with 1 elements
# CHECK: $fish_function_path[1]: |{{.*}}|