X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/94ab888a4e8732ea699f832211637f1003c9ba00..5f7a37092d2d250c176c4779106fc88c0e3e38a4:/bin/weechat diff --git a/bin/weechat b/bin/weechat index 288adcb..483fd31 100755 --- a/bin/weechat +++ b/bin/weechat @@ -1,5 +1,10 @@ -#!/usr/bin/env bash +#!/usr/bin/zsh +jobs -Z weechat -host=tardis.rmz.io +host=rmz.io -autossh -M0 -t $host "tmux -u new-session -As weechat weechat" +if [[ "$(hostnamectl --static)" == "$host" ]]; then + /usr/bin/weechat "$@" +else + autossh -M0 -t $host "tmux -u new-session -As weechat weechat" +fi