]> git.rmz.io Git - dotfiles.git/commitdiff
bin: use new method to access remove weechat
authorSamir Benmendil <me@rmz.io>
Sun, 28 Jul 2019 15:44:36 +0000 (16:44 +0100)
committerSamir Benmendil <me@rmz.io>
Sun, 28 Jul 2019 15:45:00 +0000 (16:45 +0100)
bin/weechat

index 885837cada170e8408cec0f7a6bb5eacab639016..997196598c05b6e25085b0873f0f9b33e1e4bf13 100755 (executable)
@@ -3,8 +3,4 @@ jobs -Z weechat
 
 host=rmz.io
 
-if [[ "$(hostnamectl --static)" == "$host" ]]; then
-    /usr/bin/weechat "$@"
-else
-    autossh -M0 -t $host "LANG=en_GB.UTF-8 tmux -u new-session -As weechat weechat"
-fi
+autossh -M0 -t $host "LANG=en_GB.UTF-8 tmux -L weechat attach"