From 687c8b5e715c7340eee40ddb01e2fc965199b77f Mon Sep 17 00:00:00 2001 From: Jaromil Date: Wed, 28 Aug 2024 09:11:49 +0200 Subject: [PATCH] Deployed 7c0388e with MkDocs version: 1.6.0 --- index.html | 2 +- setup | 17 ++++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 032a82c..4fbe8aa 100644 --- a/index.html +++ b/index.html @@ -384,7 +384,7 @@

Chads have no time for WeeChat con

Quick start:

Install WeeChat latest (version >4.4)

-
curl -Ls dyne.org/weechad/setup | bash
+
curl -Ls dyne.org/weechad/setup | NICK=yournick bash
 

Will create the ~/weechad script and a new conf in ~/.weechad

If you like copy the script by hand into /usr/local/bin/weechad

diff --git a/setup b/setup index a0c3ff4..d6a6d79 100644 --- a/setup +++ b/setup @@ -68,8 +68,19 @@ echo ${wcver} | grep 4.4.. || { exit 1 } -err "Chose a nickname?" -read nick +# running in terminal or through a pipe? +if [ -t 0 ]; then + err "Chose a nickname?" + read nick +else + if [ "$NICK" = "" ]; then + err "Nickname undefined! Run setup locally or define your NICK:" + err "curl -Ls dyne.org/weechad/setup | NICK=yournick bash" + exit 1 + else + nick="$NICK" + fi +fi nick_conf="/set irc.server_default.nicks \"${nick},${nick}_,${nick}__,${nick}__\"" err "OK $nick! I'm generating your configuration in ~/.weechad" @@ -182,7 +193,7 @@ plscript highmon.pl err "and I'm running WeeChat first run (you'll see the terminal blink)" WEECHAT_HOME="$H" \ weechat -a -r "$theme_conf" -r "$script_conf" -r "$server_conf" -r "/save;/quit;" -chmod -R go-rwx ~/.weechat +chmod -R go-rwx ~/.weechad err "Setup completed! Now copy ./weechad in your PATH" err "at last I'm generating your startup script in ~/weechad"