diff options
Diffstat (limited to '')
-rw-r--r-- | home/shell/fish/functions/rgerrit.fish | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/home/shell/fish/functions/rgerrit.fish b/home/shell/fish/functions/rgerrit.fish new file mode 100644 index 0000000..3aed310 --- /dev/null +++ b/home/shell/fish/functions/rgerrit.fish @@ -0,0 +1,6 @@ +# gerrit runs on tahoe, and we ssh to it through its tailscale +# network interface. +function rgerrit --description "execute gerrit commands" + set -lx gerrit_host (tailscale status --json | jq -r '.Peer | map(select(.HostName == "tahoe"))[0].TailscaleIPs[0]') + ssh $gerrit_host -p 29418 gerrit $argv +end |