pub fn generate_init_script(fs: &dyn Fs, paths: &dyn Pather) -> Result<String>Expand description
Generate the shell init script content from the current datastore state.
Scans the datastore for:
packs/*/shell/*— symlinks to shell scripts →sourcelinespacks/*/path/*— symlinks to directories →PATH=lines
Returns the script content as a string.