X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/8bec8281c3f17b74b4b90453273f841d7ed48cfc..fd2e16fc92dd7a33908ceff1e31f03e05a78fda9:/bin/weechat diff --git a/bin/weechat b/bin/weechat index 9971965..97d773d 100755 --- a/bin/weechat +++ b/bin/weechat @@ -1,6 +1,10 @@ -#!/usr/bin/zsh +#!/usr/bin/env zsh jobs -Z weechat host=rmz.io -autossh -M0 -t $host "LANG=en_GB.UTF-8 tmux -L weechat attach" +if tmux -L weechat has-session -t weechat 2>/dev/null; then + tmux -L weechat attach +else + ssh -t $host "LANG=en_GB.UTF-8 tmux -L weechat attach" +fi