]> git.rmz.io Git - dotfiles.git/blobdiff - bin/weechat
Other changes at cadscan (with the ones I want to keep stripped)
[dotfiles.git] / bin / weechat
index f6296b291e8e28b186342c4b747807a1d6d007f1..74524734e73c9e03921a33f22c755a9c9bf583ec 100755 (executable)
@@ -1,5 +1,11 @@
-#!/usr/bin/env bash
+#!/usr/bin/zsh
+jobs -Z weechat
 
 
-host=tardis.rmz.io
+user=ramsi
+host=rmz.io
 
 
-autossh -M0 -t $host "tmux -u attach -t weechat"
+if [[ "$(hostnamectl --static)" == "$host" ]]; then
+    /usr/bin/weechat "$@"
+else
+    autossh -M0 -t $user@$host "LC_CTYPE=en_GB.UTF-8 tmux -u new-session -As weechat weechat"
+fi