shithub: rc

Download patch

ref: 8e280fed9b4648ec12e8ed6b428d0a880f60c8ba
parent: 8a059a242e7f6ed5bdfdac4d3e1c6642c401a307
author: qwx <qwx@sciops.net>
date: Mon Jul 11 09:07:16 EDT 2022

s: dump list of all files in menu3 list; use external file for more M shortcuts

--- a/bin/s
+++ b/bin/s
@@ -43,6 +43,16 @@
 	echo !exec window -m -cd `{basename -d $%} $*
 }
 
+# ^dump		# print all files in menu
+fn dump{
+	rfork e
+	d = `{pwd}
+	echo 'Y/^..\./!echo `{cleanname -d' $d '$%}^'':#''^$%dot(2)^'',#''^$%dot(3) >>/tmp/dump.'$pid
+	echo 'X/^..\./!echo `{cleanname -d' $d '$%}^'':#''^$%dot(2)^'',#''^$%dot(3) >>/tmp/dump.'$pid
+	echo r '/tmp/dump.'$pid
+	echo !rm '/tmp/dump.'$pid
+}
+
 # from umbraticus' rc/s/u
 # !u [fn...]   # print sam fn usage
 fn U{
@@ -160,3 +170,6 @@
 M ^R mk install
 M |fmt -l 82
 !
+# more common menu items
+if(test -f $home/lib/jam)
+	. $home/lib/jam