-#!/usr/bin/zsh
+#!/usr/bin/env zsh
jobs -Z weechat
host=rmz.io
-autossh -M0 -t $host "tmux -u new-session -As weechat weechat"
+if tmux -L weechat has-session -t weechat 2>/dev/null; then
+ tmux -L weechat attach
+else
+ ssh -t $host "LANG=en_GB.UTF-8 tmux -L weechat attach"
+fi