home · contact · privacy
On server, replace screen/irssi with tmux/weechat/bitlbee.
[config] / bin / weechat-wrapper.sh
diff --git a/bin/weechat-wrapper.sh b/bin/weechat-wrapper.sh
new file mode 100755 (executable)
index 0000000..333c9d1
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# Enforce ~/.weechatrc as sole persistent weechat config file.
+~/config/bin/simplemail.sh ~/config/mails/weechat_restart_reminder
+rm -rf ~/.weechat/
+WEECHATCONF=`tr '\n' ';' < ~/.weechatrc`
+weechat -r "$WEECHATCONF"
+rm -rf ~/.weechat/