ref: c0bb334ab6e553f9a1ede3a022de93ad2dc2a4dd
parent: 8b25dd0bdd9ba563f0811f0ef8ce24041a7696a9
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Jul 14 16:46:00 EDT 2020
g: add '.hs' and 'mkfile' to the walk. (thanks joe9) This expands the set of files that we grep through by default to include mkfiles and haskell.
--- a/rc/bin/g
+++ b/rc/bin/g
@@ -20,7 +20,9 @@
exit usage
case 1
pattern=$1
- files=`$nl{walk -f $recurse | grep '\.([bcChlmsy]|asm|awk|cc|cgi|cpp|cs|go|goc|java|lx|ms|pl|py|rc|tex|xy)$' >[2]/dev/null}+ fullnames='mkfile$'
+ suffixes='\.([bcChlmsy]|asm|awk|cc|cgi|cpp|cs|go|goc|hs|java|lx|ms|pl|py|rc|tex|xy)$'
+ files=`$nl{walk -f $recurse | grep -e $fullnames -e $suffixes >[2]/dev/null}case *
pattern=$1
shift
--
⑨