mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 18:55:06 +08:00

When built with the default "installable" feature, the data files (share/) are included in the fish binary itself. Run `fish --install` or `fish --install=noconfirm` (for non-interactive use) to install fish's data files into ~/.local/share/fish/install To figure out if the data files are out of date, we write the current version to a file on install, and read it on start. CMake disables the default features so nothing changes for that, but this allows installing via `cargo install`, and even making a static binary that you can then just upload and have extract itself. We set $__fish_help_dir to empty for installable builds, because we do not have a way to generate html docs (because we need fish_indent for highlighting). The man pages are found via $__fish_data_dir/man