X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/b879c5b2c5b47d6fe1e9f5fb99efd09bccaaf752..f26ddc3e4f44ad230ffb78a7b6ee1d527d5c56c8:/bin/weechat diff --git a/bin/weechat b/bin/weechat index 885837c..f13ff1e 100755 --- a/bin/weechat +++ b/bin/weechat @@ -3,8 +3,8 @@ jobs -Z weechat host=rmz.io -if [[ "$(hostnamectl --static)" == "$host" ]]; then - /usr/bin/weechat "$@" +if tmux -L weechat has-session -t weechat; then + tmux -L weechat attach else - autossh -M0 -t $host "LANG=en_GB.UTF-8 tmux -u new-session -As weechat weechat" + autossh -M0 -t $host "tmux -L weechat attach" fi