Copy the file `/etc/hub.fish_completion` from the location where you downloaded `hub` to the folder `~/.config/fish/completions/` and rename it to `hub.fish`:
Copy the file `/etc/hub.fish_completion` from the location where you downloaded
`hub` to the folder `~/.config/fish/completions/` and rename it to `hub.fish`: