shithub: rc

Download patch

ref: 8d85d21d00d5806c45b8b243ac8ef265b491a8f7
parent: b2782a107c082bdaae5846532c3deab074c17034
author: qwx <qwx@sciops.net>
date: Sat Apr 9 20:22:14 EDT 2022

s: fix ^R quoting and add ^T command

--- a/bin/s
+++ b/bin/s
@@ -4,12 +4,18 @@
 # ^R [cmd]     # run command and send output to jam.err window
 fn R{
 	echo w
+	c=''''^($*)^''''
 	f=$%
-	echo !'{' cd `{basename -d $%} '&&' $"* '}'
+	echo !'{' cd `{basename -d $f} '&&' $c '}'
 	echo B /tmp/jam.err
 	echo e
 	echo b $f
 	echo b ~~jam~~
+}
+
+# ^T	# write to disk any modified files
+fn T{
+	echo X/^''''/w
 }
 
 # !o name expr # save a sam command