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/aliases.zsh | 1 + base/zsh/functions.zsh | 8 ++++++++ 2 files changed, 9 insertions(+) (limited to 'base') diff --git a/base/zsh/aliases.zsh b/base/zsh/aliases.zsh index 21aa55c..4df3813 100644 --- a/base/zsh/aliases.zsh +++ b/base/zsh/aliases.zsh @@ -13,6 +13,7 @@ alias duhs="du -sh * | sort -rh" # Pour les erreurs de clavier alias exti="exit" +alias exxit="exit" alias exir="exit" alias eit="exit" 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