shithub: rc

Download patch

ref: 1fd47d8f10d5471f7c9f587f8b85827700890e70
parent: dcad1c92df7594f36c665aafecb20965699c46c2
author: qwx <qwx@sciops.net>
date: Thu Mar 17 03:09:46 EDT 2022

s: saving a fn; remove conflicting rc fn

--- a/bin/s
+++ b/bin/s
@@ -15,6 +15,16 @@
 	echo e
 }
 
+# !o cmd: save a sam command
+fn o{
+	echo 'fn '^$1^'{ echo '''^$2^''' }' >/env/'fn#'^$1
+}
+# ^O cmd: run any rc function
+fn O{
+	fun $*
+}
+
+
 # from umbraticus' rc/s
 # ^+ [n] # increase indent
 fn +{
@@ -72,11 +82,6 @@
 }
 # _m # plumb man page for selected name
 fn m{sed '1s/.*/!plumb &''(0)''/;q'}
-# ^rc # rc comment
-fn rc{
-	if(~ $%dot(2) $%dot(3)) echo ,
-	echo 'x/^/i/# '
-}
 # ^rn from to # rename C identifier
 fn rn{
 	rfork e