]> git.rmz.io Git - dotfiles.git/blobdiff - bin/weechat
zsh: Make sure personal script are prefered over brew paths
[dotfiles.git] / bin / weechat
index eebd885b10ba3a2340c2c10603d6ce6e05b6ca80..f13ff1ea768b95a408ef2caba78eae11b8a596e4 100755 (executable)
@@ -3,4 +3,8 @@ 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; then
+    tmux -L weechat attach
+else
+    autossh -M0 -t $host "tmux -L weechat attach"
+fi