shithub: rc

Download patch

ref: 9def71c56f9c9754f5c33725d4ee67ab27326e47
parent: 10070ded89311ccda509c947f2dd59526ec824d5
author: sl <sl@x1tit>
date: Sun Sep 14 19:09:51 EDT 2025

r: fix bugs

--- a/r
+++ b/r
@@ -1,5 +1,5 @@
 #!/bin/rc
-# 2025-09-13T20:04:19-04:00
+# 2025-09-14T19:01:54-04:00
 # bof: http://shithub.us/qwx/fork/HEAD/info.html
 # rio.themes: https://ftrv.se/14
 # copy this file to $home/bin/rc and modify to suit.
@@ -20,8 +20,8 @@
 riocmd=(rio.themes)
 switch($*){
 case -b
+	riocmd=(bof)
 	bind $home/lib/rio.theme.black $home/lib/rio.theme
-	riocmd=bof
 case -t
 	bind $home/lib/rio.theme.orig $home/lib/rio.theme
 case -ta
@@ -41,11 +41,10 @@
 case -ts
 	bind $home/lib/rio.theme.sigrid $home/lib/rio.theme
 case *
-	riocmd=(rio $*)
+	riocmd=(rio)
 	exec $riocmd -i $home/lib/riostart
 }
-#exec $riocmd -B <{tobit $riob} -i $home/lib/riostart	# old
-if(~ $riocmd bof){
+if(~ $riocmd rio.themes){
 	riob=`{basename `{fortune <{hget http://bg.stanleylieber.com/index}}}
 	ramfs -m /n/bg &&
 	hget http://bg.stanleylieber.com/img/bg/$riob >/n/bg/$riob &&
--