]> git.rmz.io Git - dotfiles.git/blobdiff - bin/weechat
Other changes at cadscan (with the ones I want to keep stripped)
[dotfiles.git] / bin / weechat
index ddecdb9e6de2454f20cee523c8fd7877b6c4ef6f..74524734e73c9e03921a33f22c755a9c9bf583ec 100755 (executable)
@@ -1,5 +1,11 @@
-#!/usr/bin/env bash
+#!/usr/bin/zsh
+jobs -Z weechat
 
 
+user=ramsi
 host=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 $user@$host "LC_CTYPE=en_GB.UTF-8 tmux -u new-session -As weechat weechat"
+fi