]> git.rmz.io Git - dotfiles.git/commitdiff
bin: make tmux check quiet and set utf8 LANG
authorSamir Benmendil <samir@fppnt.com>
Fri, 18 Oct 2019 09:21:36 +0000 (10:21 +0100)
committerSamir Benmendil <samir@fppnt.com>
Fri, 18 Oct 2019 09:21:36 +0000 (10:21 +0100)
bin/weechat

index f13ff1ea768b95a408ef2caba78eae11b8a596e4..f95651d7ae0548b0749abae0960378d5bc45e057 100755 (executable)
@@ -1,10 +1,10 @@
-#!/usr/bin/zsh
+#!/usr/bin/env zsh
 jobs -Z weechat
 
 host=rmz.io
 
 jobs -Z weechat
 
 host=rmz.io
 
-if tmux -L weechat has-session -t weechat; then
+if tmux -L weechat has-session -t weechat 2>/dev/null; then
     tmux -L weechat attach
 else
     tmux -L weechat attach
 else
-    autossh -M0 -t $host "tmux -L weechat attach"
+    autossh -M0 -t $host "LANG=en_GB.UTF-8 tmux -L weechat attach"
 fi
 fi