weechat: replace weechat injection with simple reminder
This commit is contained in:
parent
7e870ea9e7
commit
1faf64ad3d
|
@ -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
|
|
||||||
|
|
Loading…
Reference in a new issue