X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/b20e2532cc21d716190f3b9e3ed4e126bd2cb555..a59aa3f7d15dae57e2d066e47af3556c46d9dac4:/bin/weechat diff --git a/bin/weechat b/bin/weechat index f6296b2..97d773d 100755 --- a/bin/weechat +++ b/bin/weechat @@ -1,5 +1,10 @@ -#!/usr/bin/env bash +#!/usr/bin/env zsh +jobs -Z weechat -host=tardis.rmz.io +host=rmz.io -autossh -M0 -t $host "tmux -u attach -t 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