#!/usr/bin/zsh jobs -Z weechat host=rmz.io if tmux -L weechat has-session -t weechat; then tmux -L weechat attach else autossh -M0 -t $host "tmux -L weechat attach" fi