From: Samir Benmendil Date: Fri, 3 Jul 2015 21:29:33 +0000 (+0000) Subject: bin: don't start autossh on rmz.io X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/b3aedb2bc3eb7b255e91858ad46c5e187a07fee0?ds=inline bin: don't start autossh on rmz.io --- diff --git a/bin/weechat b/bin/weechat index eebd885..483fd31 100755 --- a/bin/weechat +++ b/bin/weechat @@ -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