fisher install kaito4681/fish-ghq-ssh
Ctrl+g: Repository finderCtrl+r: Toggle search mode (Local Repositories ⇄ Remote SSH Repositories)
Add the following configurations to your ~/.config/fish/config.fish.
Define a list of remote hosts you want to search. These hostnames must be configured in your ~/.ssh/config or be resolvable.
# example
set -gx GHQ_REMOTE_HOSTS myserver1 myserver2
If ghq is not in the default $PATH on the remote machine, or if you want to specify a custom path/command for a specific host, define a variable named GHQ_PATH_<HOST_NAME>.
# example
set -gx GHQ_PATH_myserver1 /usr/local/bin/ghq
set -gx GHQ_PATH_myserver2 /home/user/go/bin/ghq