]> git.rmz.io Git - dotfiles.git/blobdiff - bin/weechat
bin: don't start autossh on rmz.io
[dotfiles.git] / bin / weechat
index eebd885b10ba3a2340c2c10603d6ce6e05b6ca80..483fd31c124c239b03024376b734305fad6bbc80 100755 (executable)
@@ -3,4 +3,8 @@ jobs -Z weechat
 
 host=rmz.io
 
-autossh -M0 -t $host "tmux -u new-session -As weechat weechat"
+if [[ "$(hostnamectl --static)" == "$host" ]]; then
+    /usr/bin/weechat "$@"
+else
+    autossh -M0 -t $host "tmux -u new-session -As weechat weechat"
+fi