]> git.rmz.io Git - dotfiles.git/blobdiff - bin/weechat
vim: add choice snippet for sh
[dotfiles.git] / bin / weechat
index 288adcbf4e67508b2e169fd5ea80b7976466c404..885837cada170e8408cec0f7a6bb5eacab639016 100755 (executable)
@@ -1,5 +1,10 @@
-#!/usr/bin/env bash
+#!/usr/bin/zsh
+jobs -Z weechat
 
 
-host=tardis.rmz.io
+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 "LANG=en_GB.UTF-8 tmux -u new-session -As weechat weechat"
+fi