about summary refs log tree commit diff
path: root/home/shell/zsh/gerrit.zsh
blob: 9766b2f0b81961a6362a858b4e43a9cbd9eaf3f2 (plain) (blame)
1
2
3
4
5
function rgerrit() {
  # gerrit runs on tahoe, and we ssh to it through its tailscale
  # network interface.
  ssh $(tailscale status --json | jq -r '.Peer | map(select(.HostName == "tahoe"))[0].TailscaleIPs[0]') -p 29418 gerrit $@
}