Skip to content

Commit

Permalink
Deployed 7c0388e with MkDocs version: 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Aug 28, 2024
1 parent 02c82cc commit 687c8b5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ <h1 id="chads-have-no-time-for-weechat-confs">Chads have no time for WeeChat con
</code></pre></div>
<p>Quick start:</p>
<p>Install <a href="https://weechat.org">WeeChat</a> latest (version &gt;4.4)</p>
<div class="highlight"><pre><span></span><code>curl -Ls dyne.org/weechad/setup | bash
<div class="highlight"><pre><span></span><code>curl -Ls dyne.org/weechad/setup | NICK=yournick bash
</code></pre></div>
<p>Will create the <code>~/weechad</code> script and a new conf in <code>~/.weechad</code></p>
<p>If you like copy the script by hand into <code>/usr/local/bin/weechad</code></p>
Expand Down
17 changes: 14 additions & 3 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 687c8b5

Please sign in to comment.