]> git.rmz.io Git - dotfiles.git/commitdiff
bin: don't start autossh on rmz.io
authorSamir Benmendil <me@rmz.io>
Fri, 3 Jul 2015 21:29:33 +0000 (21:29 +0000)
committerSamir Benmendil <me@rmz.io>
Fri, 3 Jul 2015 21:29:33 +0000 (21:29 +0000)
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