From 5a0b1fca1ddbcff5088f9db13b9c1b853e0a9369 Mon Sep 17 00:00:00 2001 From: Adam Hovorka Date: Wed, 3 Oct 2018 09:34:34 -0600 Subject: Add universal trc function --- base/zsh/functions.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'base/zsh/functions.zsh') diff --git a/base/zsh/functions.zsh b/base/zsh/functions.zsh index db4271e..18ea8b4 100644 --- a/base/zsh/functions.zsh +++ b/base/zsh/functions.zsh @@ -25,3 +25,11 @@ hex() { if [[ -n "$1" ]]; then printf "%X\n" $1 else print 'Usage: hex '; fi } + +trc() { + if [[ `uname -n` = "aristotle" ]]; then + transmission-remote-client + else + ssh dhd.ahov.co ssh aristotle transmission-remote-client + fi +} -- cgit v1.2.3-70-g09d2