weechat: replace weechat injection with simple reminder

This commit is contained in:
Henrik Lissner 2017-01-03 03:31:13 -05:00
parent 7e870ea9e7
commit 1faf64ad3d

View file

@ -13,21 +13,5 @@ case $OSTYPE in
fi fi
esac esac
# If this exists, it's already configured # NOTE: init.sh needs to be run separately, afterward
[[ -f ~/.weechat/sec.conf ]] && exit echo "Don't forget to run weechat/scripts/init.sh while weechat is open"
if [[ -f ~/.private/config/irc.conf ]]; then
# ...otherwise, configure it!
CWD=$(cd $(dirname $0) && pwd -P)
weechat -r "/set plugins.var.fifo.fifo on'" &
PID=$?
while ! pgrep weechat >/dev/null; do sleep 1; done
wee "$HOME/.private/config/irc.conf"
wee "$CWD/settings.txt"
wee "$CWD/servers.txt"
kill $PID
else
>&2 echo "Couldn't find secrets!"
exit 1
fi