]> git.mdlowis.com Git - projs/tide.git/commitdiff
Added example editrc file with some useful tools and tag lines
authorMichael D. Lowis <mike.lowis@gentex.com>
Tue, 31 Jan 2017 13:35:17 +0000 (08:35 -0500)
committerMichael D. Lowis <mike.lowis@gentex.com>
Tue, 31 Jan 2017 13:35:17 +0000 (08:35 -0500)
editrc [new file with mode: 0644]

diff --git a/editrc b/editrc
new file mode 100644 (file)
index 0000000..4ea678a
--- /dev/null
+++ b/editrc
@@ -0,0 +1,22 @@
+# Tag Lines
+#------------------------------------------------------------------------------
+
+csrc(){ echo -n "Quit Save >lines |bc |uc | Find "; }
+src(){ echo -n "Quit Save >lines |bcmt |ucmt | Find "; }
+ptext(){ echo -n "Quit Save |fmt >words | Find "; }
+
+# setup default tags line
+export EDITTAGS="$(csrc)"
+
+# Tool Functions
+#------------------------------------------------------------------------------
+
+# Word and Line Counts
+words(){ wc -w; }
+lines(){ wc -l; }
+
+# Block Comments for C and Scripting Languages
+bc(){ sed -e 's/^/\/\//'; }
+uc(){ sed -e 's/^\/\///'; }
+bcmt(){ sed -e 's/^/#/'; }
+ucmt(){ sed -e 's/^#//'; }