shithub: bin.rc

Download patch

ref: adc4463f0ca6590f216aadb1e75390977fe1ec49
parent: 3c724f5a03ba3846bce90e0fbc11e4f4e5b5e09a
author: kvik <kvik@a-b.xyz>
date: Sat Feb 15 15:34:40 EST 2020

c(1): update to follow new sam $%dot variable

--- a/bin/c
+++ b/bin/c
@@ -18,7 +18,7 @@
 	files = `{walk -f $search | $ignore | grep '\.[chsyl]$'}
 
 	echo 'X ,x@^(typedef[ 	\n]+)?struct([^}][^;]*\n*)+}.*;\n@ g@^(typedef[ 	\n]+)?struct[ 	]+'$regex'@ {
-		!echo '•' $%:$%l
+		!echo '•' $%:$%dot(1)
 		p
 	}' | sam -d $files >[2]/dev/null
 }
@@ -37,7 +37,7 @@
 
 	sep = '	• '
 	echo 'X ,x g@^'$regex'\(@ {
-		!echo -n $%:$%l $sep
+		!echo -n $%:$%dot(1) $sep
 		p
 	}' | sam -d $files >[2]/dev/null
 }