X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/1f077f38f469241185d086dc861b3cbc1123c548..f5f39bf6d1b33a2ec77cd6f79c1d38ae116ff076:/bin/weechat diff --git a/bin/weechat b/bin/weechat index ddecdb9..885837c 100755 --- a/bin/weechat +++ b/bin/weechat @@ -1,5 +1,10 @@ -#!/usr/bin/env bash +#!/usr/bin/zsh +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 "LANG=en_GB.UTF-8 tmux -u new-session -As weechat weechat" +fi