diff options
author | Adam Hovorka <[email protected]> | 2018-10-03 09:34:34 -0600 |
---|---|---|
committer | Adam Hovorka <[email protected]> | 2018-10-03 09:34:34 -0600 |
commit | 5a0b1fca1ddbcff5088f9db13b9c1b853e0a9369 (patch) | |
tree | af8307434b0faa504822568ca8fbaafcef305353 | |
parent | 37e570357c2091acc606233f7ac8456c56b4831e (diff) |
Add universal trc function
-rw-r--r-- | base/zsh/aliases.zsh | 1 | ||||
-rw-r--r-- | base/zsh/functions.zsh | 8 |
2 files changed, 9 insertions, 0 deletions
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 <number-to-convert>'; fi } + +trc() { + if [[ `uname -n` = "aristotle" ]]; then + transmission-remote-client + else + ssh dhd.ahov.co ssh aristotle transmission-remote-client + fi +} |