]> git.rmz.io Git - dotfiles.git/blobdiff - bin/weechat
zsh: Make sure personal script are prefered over brew paths
[dotfiles.git] / bin / weechat
index 885837cada170e8408cec0f7a6bb5eacab639016..f13ff1ea768b95a408ef2caba78eae11b8a596e4 100755 (executable)
@@ -3,8 +3,8 @@ jobs -Z weechat
 
 host=rmz.io
 
 
 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
 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
 fi