From 6fd52171e03523c6b64a298a269765ae539138a5 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 26 Apr 2017 18:56:00 -0400 Subject: [PATCH] +weechat: use pass to set up secure variables --- +weechat/scripts/init.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/+weechat/scripts/init.sh b/+weechat/scripts/init.sh index bf7f37b3..97eea8db 100755 --- a/+weechat/scripts/init.sh +++ b/+weechat/scripts/init.sh @@ -9,7 +9,15 @@ if [[ -f ~/.private/config/irc.conf ]]; then # ...otherwise, configure it! CWD=$(cd $(dirname $0) && pwd -P) - wee "$HOME/.private/config/irc.conf" + wee "/secure passphrase $(pass irc/master)" + wee "/secure set username vnought" + wee "/secure set freenode $(pass irc/freenode.net | head -n1)" + wee "/secure set snoonet $(pass irc/snoonet.org | head -n1)" + wee "/secure set oftc $(pass irc/oftc.net | head -n1)" + wee "/secure set afternet $(pass irc/afternet.net | head -n1)" + wee "/secure set pushover_key $(pass api/pushover/key)" + wee "/secure set pushover_api $(pass api/pushover/api)" + wee "$CWD/../plugins.txt" wee "$CWD/../settings.txt" wee "$CWD/../servers.txt"