about summary refs log tree commit diff
path: root/home/shell/zsh/gerrit.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'home/shell/zsh/gerrit.zsh')
-rw-r--r--home/shell/zsh/gerrit.zsh5
1 files changed, 5 insertions, 0 deletions
diff --git a/home/shell/zsh/gerrit.zsh b/home/shell/zsh/gerrit.zsh
new file mode 100644
index 0000000..9766b2f
--- /dev/null
+++ b/home/shell/zsh/gerrit.zsh
@@ -0,0 +1,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 $@
+}