The following script discovers available ADB over Wi-Fi devices in the current network and attempts to connect to them.
Add it as a fish function: store the following function to ~/.config/fish/functions/adb-autoconnect.fish
, it will be loaded automatically: