-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfweechat
More file actions
executable file
·19 lines (18 loc) · 891 Bytes
/
confweechat
File metadata and controls
executable file
·19 lines (18 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
mkdir ~/.weechat
curl https://raw.githubusercontent.com/redbrick/eduScripts/master/wcconf/weechat.conf -o "$HOME/.weechat/weechat.conf"
curl https://raw.githubusercontent.com/redbrick/eduScripts/master/wcconf/trigger.conf -o "$HOME/.weechat/trigger.conf"
curl https://raw.githubusercontent.com/redbrick/eduScripts/master/wcconf/irc.conf -o "$HOME/.weechat/irc.conf"
curl https://raw.githubusercontent.com/redbrick/eduScripts/master/wcconf/alias.conf -o "$HOME/.weechat/alias.conf"
user=$(whoami)
sed -i "s/USERNAME_HERE/$user/g" "$HOME/.weechat/irc.conf"
echo "Have you set up your NickServ Password?(y/N)"
read -r answer
if echo "$answer" | grep -iq "^y" ; then
echo "What is your Paswword"
read -r PASS
sed -i "s/NICKSERV_PASSWORD/$PASS/g" "$HOME/.weechat/irc.conf"
else
echo "Remeber to msg Nickserv to register"
fi
echo "All done just run weechat to chat to people"