X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/e5d7e78f09fdaad72aea931b18487328d4509297..b3aedb2bc3eb7b255e91858ad46c5e187a07fee0:/bin/weechat diff --git a/bin/weechat b/bin/weechat index eebd885..483fd31 100755 --- a/bin/weechat +++ b/bin/weechat @@ -3,4 +3,8 @@ jobs -Z weechat 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