dot

packages and services management
Log | Files | Refs | README

commit 616d426ee84a4618882226ba4243625bd4968c75
parent fa446773647fe617735689b3552a598e1347eddd
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu,  7 Jun 2018 01:25:26 +0200

fix user script

Diffstat:
Muser/irc | 14++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/user/irc b/user/irc @@ -8,12 +8,14 @@ ifs=' ' fn sigint {} -while (s=`{ls out */out */*/out >[2]/dev/null | sed 's,/out$,,' | iomenu}) { - if (~ $#s 0) - exit 0 - if (~ $s out) - less out - if not tail -f $s/out | eel | shuntty $s''> '' >$s/in +while (true) { + c=`{exec ls -d ./out */out */*/out | exec sed 's,/out,,' | exec iomenu} + if (~ $#c 1) switch (`{exec printf '%s\n' view chat | exec iomenu}) { + case view + less $c/out + case chat + exec tail -f -n 80 $c/out | exec eel | shuntty $c'> ' >$c/in + } } EOF