We can't just create a new file if there already exists one since it would prevent fish from loading the others, or the tauri one depending on the order. I'd rather not look through all dirs fish loads completions from to do source /path/to/whatever.fish either.
ideally we'd want to have a tauri.fish in one of the aforementioned dir which triggers on tauri, cargo tauri, yarn tauri and npm run tauri but i could not find a way to do this and therefore i'm hoping that actual fish users may know more than me :)
In https://github.com/tauri-apps/tauri-docs/pull/1283 we've added docs for bash, zsh and powershell, however
tauri completions
also supports fish but i've had issues coming up with something nice having 0 experience with Fishand being vegan, https://github.com/tauri-apps/tauri-docs/pull/1283#discussion_r1226659935.A short recap of my assumptions in the linked comments:
~/.local/share/fish/vendor_completions.d/
or~/.config/fish/completions/
.cargo.fish
,npm.fish
, etc.source /path/to/whatever.fish
either.ideally we'd want to have a tauri.fish in one of the aforementioned dir which triggers on
tauri
,cargo tauri
,yarn tauri
andnpm run tauri
but i could not find a way to do this and therefore i'm hoping that actual fish users may know more than me :)