]> git.rmz.io Git - dotfiles.git/blob - bin/weechat
weechat: attach to local tmux session if available
[dotfiles.git] / bin / weechat
1 #!/usr/bin/zsh
2 jobs -Z weechat
3
4 host=rmz.io
5
6 if tmux -L weechat has-session -t weechat; then
7 tmux -L weechat attach
8 else
9 autossh -M0 -t $host "tmux -L weechat attach"
10 fi