]> git.rmz.io Git - dotfiles.git/blobdiff - bin/weechat
mutt: fix F macro to not write message to home
[dotfiles.git] / bin / weechat
index eebd885b10ba3a2340c2c10603d6ce6e05b6ca80..f95651d7ae0548b0749abae0960378d5bc45e057 100755 (executable)
@@ -1,6 +1,10 @@
-#!/usr/bin/zsh
+#!/usr/bin/env zsh
 jobs -Z weechat
 
 host=rmz.io
 
-autossh -M0 -t $host "tmux -u new-session -As weechat weechat"
+if tmux -L weechat has-session -t weechat 2>/dev/null; then
+    tmux -L weechat attach
+else
+    autossh -M0 -t $host "LANG=en_GB.UTF-8 tmux -L weechat attach"
+fi