mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-01 01:51:14 -03:00
We use absence of "$__fish_data_dir[1]" as criteria to use the
"standalone" code paths that use "status list-files/get-file" instead
of $__fish_data_dir.
However, third party software seems slow to react to such breaking
changes, see https://github.com/ajeetdsouza/zoxide/issues/1045
So keep $__fish_data_dir for now to give plugins more time.
This commit makes us ignore $__fish_data_dir on standalone builds
even if defined; a following commit will actually define it again.
I guess the approach in b815fff292 (Set $__fish_data_dir to empty
for embed-data builds, 2025-04-01) made sense back when we didn't
anticipate switching to standalone builds by default yet.
12 lines
226 B
Fish
12 lines
226 B
Fish
# localization: skip(private)
|
|
set -l is_standalone (
|
|
if status get-file config.fish &>/dev/null
|
|
echo true
|
|
else
|
|
echo false
|
|
end
|
|
)
|
|
function __fish_is_standalone -V is_standalone
|
|
$is_standalone
|
|
end
|