#!/usr/bin/zsh jobs -Z weechat host=rmz.io if [[ "$(hostnamectl --static)" == "$host" ]]; then /usr/bin/weechat "$@" else autossh -M0 -t $host "LANG=en_GB.UTF-8 tmux -u new-session -As weechat weechat" fi