mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-19 23:21:15 -03:00
As mentioned in https://github.com/fish-shell/fish-shell/issues/11921#issuecomment-3540587001, binaries duplicate a lot of information unnecessarily. $ cargo b --release $ du -h target/release/fish{,_indent,_key_reader} 15M target/release/fish 15M target/release/fish_indent 4.1M target/release/fish_key_reader 34M total Remove the duplication in CMake-installed builds by creating hard links. I'm not sure how to do that for Cargo binaries yet (can we write a portable wrapper script)? This is still a bit weird because hardlinks are rarely used like this; but symlinks may cause issues on MSYS2. Maybe we should write a /bin/sh wrapper script instead.